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
ColumnDefn currentColumn = (ColumnDefn) viewer.getViewer( ).getTable( )
					.getItem( index )
					.getData( );
			String oldName = currentColumn.getColumnName( );
			ColumnInputDialog inputDialog = new ColumnInputDialog( viewer.getControl( ).getShell( ),
					Messages.getString( "ResultSetColumnPage.inputDialog.editColumn.title" ), 
					currentColumn );
			if ( inputDialog.open( ) == Window.OK )
			{
				updateColumnDefMap( oldName, inputDialog.getColumnDefn( ) );
				viewer.getViewer( ).refresh( );
				updateMessage( );
			}
		}
		else
		{
			getContainer( ).setMessage( Messages.getString( "OutputColumnPage.error.invalidSelection" ), IMessageProvider.ERROR ); 
		}
		updateButtons( );
	}
	/**
	 * Updates the buttons and menu items
	 * on this page are set
	 */
	protected void updateButtons( )
	{
		viewer.getRemoveAllMenuItem( ).setEnabled( viewer.getViewer( ).getTable( )
				.getItemCount( ) > 0 );
		if ( viewer.getViewer( ).getTable( ).getSelectionCount( ) == 1 )
		{