else if ( selected instanceof ReportItemHandle || selected instanceof DataSourceHandle || selected instanceof DataSetHandle || selected instanceof ParameterHandle || selected instanceof MasterPageHandle || selected instanceof EmbeddedImageHandle )
else if (canAddtoReport(selected))
	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 File )			{				if ( ( (File) selected ).isDirectory( ) )				{					addLibraryAction.setFolder( (File) selected );					menu.add( addLibraryAction );				}				else				{					addLibraryAction.setFolder( ( (File) selected ).getParentFile( ) );					menu.add( addLibraryAction );					if ( useLibraryAction.isEnabled( ) )					{						menu.add( useLibraryAction );					}				}			}			else if ( selected instanceof ReportItemHandle 				|| selected instanceof DataSourceHandle				|| selected instanceof DataSetHandle				|| selected instanceof ParameterHandle				|| selected instanceof MasterPageHandle				|| selected instanceof EmbeddedImageHandle				)			{				if(selection.size( ) == 1)				{					AddElementtoReport addElementAction = new AddElementtoReport( (StructuredViewer) getViewer() );					addElementAction.setSelectedElement( selected );					menu.add( addElementAction );									}			}		}		else		{			refreshExplorerAction.setSelectedElement( null );			menu.add( refreshExplorerAction );			addLibraryAction.setFolder( null );			menu.add( addLibraryAction );		}	}