expandToDefaultLevel( );
if ( getControl( ).isFocusControl( ) ) { IMemento memento = viewerMemento.getChild( PropertyMementoUtil.getElementType( (DesignElementHandle) focus ) ); if ( memento == null ) { expandToDefaultLevel( ); if ( viewer.getTree( ).getItemCount( ) > 0 ) { ViewsMemento elementMemento = (ViewsMemento) viewerMemento.createChild( PropertyMementoUtil.getElementType( (DesignElementHandle) focus ), MementoElement.Type_Element ); elementMemento.getMementoElement( ) .setValue( new Integer( 0 ) ); } } if ( memento != null && memento instanceof ViewsMemento ) { expandToDefaultLevel( ); expandTreeFromMemento( (ViewsMemento) memento ); } changed = false; }else{ changed = true; }
	public void elementChanged( DesignElementHandle focus, NotificationEvent ev )	{		if ( !viewer.getTree( ).isDisposed( ) )		{			viewer.refresh( true );			expandToDefaultLevel( );		}	}