objectToSelect = bookmark;
}
if ( obj instanceof IEntry )
{
IEntry entry = ( IEntry ) obj;
universalListener.setInput( entry.getBrowserConnection() );
List<IEntry> entryList = new ArrayList<IEntry>();
IEntry tempEntry = entry;
while ( tempEntry.getParententry() != null )
{
IEntry parentEntry = tempEntry.getParententry();
entryList.add( 0, tempEntry );
tempEntry = parentEntry;
}
for ( IEntry childEntry : entryList )
{
IEntry parentEntry = childEntry.getParententry();
if ( !parentEntry.isChildrenInitialized() )
{
parentEntry.setChildrenInitialized( true );
parentEntry.setHasMoreChildren( true );
}
if ( !Arrays.asList( parentEntry.getChildren() ).contains( childEntry ) )
{
parentEntry.addChild( childEntry );
}
// force refresh of each parent, beginning from the root
// if the entry to select was lazy initialized then the
// JFace model has no knowledge about it so we must