else if ( series instanceof BubbleSeries ) { IMenuManager secondManager = new MenuManager( getSecondMenuText( axisIndex, i, series ) ); topManager.add( secondManager ); for ( int j = 0; j < dataDefns.size( ); j++ ) { IAction action = new ValueYSeriesAction( (Query) dataDefns.get( j ) ); action.setText( ChartUIUtil.getBubbleTitle( j ) + Messages.getString( "TaskSelectData.Label.Component" ) ); secondManager.add( action ); } } else if ( series instanceof DifferenceSeries ) { IMenuManager secondManager = new MenuManager( getSecondMenuText( axisIndex, i, series ) ); topManager.add( secondManager ); for ( int j = 0; j < dataDefns.size( ); j++ ) { IAction action = new ValueYSeriesAction( (Query) dataDefns.get( j ) ); action.setText( ChartUIUtil.getDifferenceTitle( j ) + Messages.getString( "TaskSelectData.Label.Component" ) ); secondManager.add( action ); } } else if ( series instanceof GanttSeries ) { IMenuManager secondManager = new MenuManager( getSecondMenuText( axisIndex, i, series ) ); topManager.add( secondManager ); for ( int j = 0; j < dataDefns.size( ); j++ ) { IAction action = new ValueYSeriesAction( (Query) dataDefns.get( j ) ); action.setText( ChartUIUtil.getGanttTitle( j ) + Messages.getString( "TaskSelectData.Label.Component" ) ); secondManager.add( action ); } }
	private Object getOrthogonalSeriesMenu( Chart chart )	{		IMenuManager topManager = new MenuManager( getOrthogonalSeriesTitle( getChartModel( ) ) );		int axisNum = ChartUIUtil.getOrthogonalAxisNumber( chart );		for ( int axisIndex = 0; axisIndex < axisNum; axisIndex++ )		{			List sds = ChartUIUtil.getOrthogonalSeriesDefinitions( chart,					axisIndex );			for ( int i = 0; i < sds.size( ); i++ )			{				Series series = ( (SeriesDefinition) sds.get( i ) ).getDesignTimeSeries( );				EList dataDefns = series.getDataDefinition( );				if ( series instanceof StockSeries )				{					IMenuManager secondManager = new MenuManager( getSecondMenuText( axisIndex,							i,							series ) );					topManager.add( secondManager );					for ( int j = 0; j < dataDefns.size( ); j++ )					{						IAction action = new ValueYSeriesAction( (Query) dataDefns.get( j ) );						action.setText( ChartUIUtil.getStockTitle( j )								+ Messages.getString( "TaskSelectData.Label.Component" ) ); //$NON-NLS-1$						secondManager.add( action );					}				}				else				{					IAction action = new ValueYSeriesAction( (Query) dataDefns.get( 0 ) );					if ( axisNum == 1 && sds.size( ) == 1 )					{						// Simplify cascade menu						return action;					}					action.setText( getSecondMenuText( axisIndex, i, series ) );					topManager.add( action );				}			}		}		return topManager;	}