expandToDefaultLevel( );
Object element = handle.getElements( ).get( 0 ); if ( element instanceof DesignElementHandle ) { IMemento memento = viewerMemento.getChild( PropertyMementoUtil.getElementType( (DesignElementHandle) element ) ); if ( memento == null ) { expandToDefaultLevel( ); if ( viewer.getTree( ).getItemCount( ) > 0 ) { ViewsMemento elementMemento = (ViewsMemento) viewerMemento.createChild( PropertyMementoUtil.getElementType( (DesignElementHandle) element ), MementoElement.Type_Element ); elementMemento.getMementoElement( ) .setValue( new Integer( 0 ) ); } } else if ( memento instanceof ViewsMemento ) { expandToDefaultLevel( ); expandTreeFromMemento( (ViewsMemento) memento ); } }
	public void handleSelectionChanged( ISelection selection )	{		if ( this.selection != null && this.selection.equals( selection ) )			return;		this.selection = selection;		deRegisterListeners( );		list = getModelList( selection );		GroupElementHandle handle = DEUtil.getMultiSelectionHandle( list );		if ( handle != null && !handle.isSameType( ) )		{			viewer.setInput( null );			return;		}		viewer.setInput( handle );		setTitleDisplayName( handle );		registerListeners( );		expandToDefaultLevel( );	}