MenuManager filterSubMenu = new MenuManager( G2GuiResources.getString( "TT_DOWNLOAD_MENU_FILTER" ) );
if (cTabFolder.getSelection() != null && cTabFolder.getSelection().getData("gTableViewer") != null) { gViewer = (GTableViewer) cTabFolder.getSelection().getData("gTableViewer");
    public void menuAboutToShow( IMenuManager menuManager ) {        // check if we already got results        if ( ( cTabFolder != null )        	&& ( cTabFolder.getSelection() != null )        	&& ( cTabFolder.getSelection().getData( "gTableViewer" ) != null ) )		// get each time the current GViewer		this.gViewer = ( GViewer ) cTabFolder.getSelection().getData( "gTableViewer" );		//TODO ColumnSelector works for all tables instead of only the current selection		if ( PreferenceLoader.loadBoolean( "advanced" ) )	        menuManager.add( new ColumnSelectorAction( gViewer ) );		// filter submenu					MenuManager filterSubMenu = new MenuManager( G2GuiResources.getString( "TT_DOWNLOAD_MENU_FILTER" ) );		// all filters		filterSubMenu.add( new AllFilterAction( gViewer ) );		filterSubMenu.add( new Separator() );		// network filters		createNetworkFilterSubMenu( filterSubMenu );		menuManager.add( filterSubMenu );    }