final List mediatorSelection = SessionHandleAdapter.getInstance( ) .getMediator( ).getCurrentState( ) .getSelectionObject( ); if ( mediatorSelection.size( ) == 1 && mediatorSelection.get( 0 ) instanceof LibraryHandle )
Object model = evt.getNewValue( ); Object editpart = getViewer( ).getEditPartRegistry( ) .get( model ); if ( editpart instanceof EditPart )
				public void run( )				{					final List mediatorSelection = SessionHandleAdapter.getInstance( )					.getMediator( ).getCurrentState( )					.getSelectionObject( );					if ( mediatorSelection.size( ) == 1							&& mediatorSelection.get( 0 ) instanceof LibraryHandle )					{						return;					}					List list =getChildren( );					EditPartViewer viewer = getViewer( );					if ( viewer instanceof DeferredGraphicalViewer )					{						( (DeferredGraphicalViewer) viewer ).setSelection(								new StructuredSelection( list ), false );					}					//getViewer().setSelection(new StructuredSelection(list));				}