menu.add( deleteLibraryAction );
if ( deleteLibraryAction.isEnabled( ) ) { menu.add( deleteLibraryAction ); }
	public void buildContextMenu( IMenuManager menu )	{		if ( Policy.TRACING_MENU_SHOW )		{			System.out.println( "Menu(for Views) >> Shows for library" ); //$NON-NLS-1$		}		menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );		IStructuredSelection selection = (IStructuredSelection) getViewer( )				.getSelection( );		if ( selection != null && selection.getFirstElement( ) != null )		{			Object selected = selection.getFirstElement( );			refreshExplorerAction.setSelectedElement( selected );			menu.add( refreshExplorerAction );			menu.add( new Separator( ) );			if ( selected instanceof LibraryHandle )			{				menu.add( addLibraryAction );				if(useLibraryAction.isEnabled( ))				{					menu.add( useLibraryAction );				}				menu.add( deleteLibraryAction );			}			else			{				// addLibraryAction.setFolder( (File) selected );				menu.add( addLibraryAction );			}			if ( canAddtoReport( selected ) )				if ( selection.size( ) == 1 )				{					AddElementtoReport addElementAction = new AddElementtoReport(							(StructuredViewer) getViewer( ) );					addElementAction.setSelectedElement( selected );					menu.add( addElementAction );				}		}		else		{			refreshExplorerAction.setSelectedElement( null );			menu.add( refreshExplorerAction );			menu.add( addLibraryAction );		}	}