Bug 192585 The Tube/Cone/Pyramid Chart Y Axis type will be Date/Time after change type to Gantt then change back [0001]
Description: The Tube/Cone/Pyramid Chart Y Axis type will be Date/Time after change type to Gantt then change back Build number: 2.2.0.v20070614-0939 Steps to reproduce: 1. Drag a chart from the Palette to the Layout. 2. Select chart type as Gantt, then change to Tube/Cone/Pyramid. Expected result: The Chart in the preview pane is the same as the one when chart builder first opened. Actual result: Their Y Axis type change to Date/Time(see the screenshot). Error log: N/A
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/GanttChart.java
}
					}
				}
				( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( false );
				if ( currentChart instanceof ChartWithAxes
						&& !( (ChartWithAxes) currentChart ).getOrientation( )
								.equals( newOrientation ) )
				{
					( (ChartWithAxes) currentChart ).setOrientation( newOrientation );
				}
				return currentChart;
			}
			else if ( currentChart.getType( ).equals( LineChart.TYPE_LITERAL )
					|| currentChart.getType( ).equals( AreaChart.TYPE_LITERAL )
					|| currentChart.getType( ).equals( BarChart.TYPE_LITERAL )
					|| currentChart.getType( ).equals( TubeChart.TYPE_LITERAL )
					|| currentChart.getType( ).equals( ConeChart.TYPE_LITERAL )
					|| currentChart.getType( )
							.equals( PyramidChart.TYPE_LITERAL )
					|| currentChart.getType( )
							.equals( ScatterChart.TYPE_LITERAL )
					|| currentChart.getType( ).equals( StockChart.TYPE_LITERAL )
					|| currentChart.getType( )
							.equals( BubbleChart.TYPE_LITERAL )
					|| currentChart.getType( )
							.equals( DifferenceChart.TYPE_LITERAL ) )
			{
				currentChart.setType( TYPE_LITERAL );
				( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true );
				currentChart.setSubType( sNewSubType );