Bug 319351 Refactor data set editor pages' codes[28193]
Build Identifier: 20100708 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/OutputColumnDefnPage.java
}
	
	protected void doNew( )
	{
		ColumnInputDialog inputDialog = new ColumnInputDialog( viewer.getControl( ).getShell( ),
				Messages.getString( "ResultSetColumnPage.inputDialog.newColumn.title" ), 
				new ColumnDefn( ) );
		if( inputDialog.open( ) == Window.OK )
		{
			ColumnDefn newColumn = inputDialog.getColumnDefn( );
			try
			{
				addNewDefn( newColumn );
				viewer.getViewer( ).refresh( );
				updateMessage( );
			}
			catch ( SemanticException e )
			{
				getContainer( ).setMessage( Messages.getString( "OutputColumnPage.error.createNewColumn" ), IMessageProvider.ERROR ); 
				ExceptionHandler.handle( e );
			}
		}
		updateButtons( );
	}
	
	protected void doEdit( )
	{
		int index = viewer.getViewer( ).getTable( ).getSelectionIndex( );
		if ( index >= 0 && index < viewer.getViewer( ).getTable( ).getItemCount( ) )
		{