Bug 322347 Refactor data set editor pages' codes[29949]
Build Identifier: 20100810 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/ResultSetColumnPage.java
}
		} );
		
		int width = getMaxWidth( add, 55 );
		width = getMaxWidth( edit, width );
		width = getMaxWidth( delete, width );
		width = getMaxWidth( up, width );
		width = getMaxWidth( down, width );
		GridData buttonGd = new GridData( );
		buttonGd.widthHint = width;
		add.setLayoutData( buttonGd );
		edit.setLayoutData( buttonGd );
		delete.setLayoutData( buttonGd );
		up.setLayoutData( buttonGd );
		down.setLayoutData( buttonGd );
	}
	
	private int getMaxWidth( Control control, int size )
	{
		int width = control.computeSize( -1, -1 ).x;
		return width > size ? width : size;
	}
	protected void doNew( )
	{
		ColumnInputDialog inputDialog = new ColumnInputDialog( getShell( ),
				Messages.getString( "ResultSetColumnPage.inputDialog.newColumn.title" ), 
				new ResultSetColumnModel( ) );
		if ( inputDialog.open( ) == Window.OK )
		{
			ResultSetColumnModel columnModel = inputDialog.getResultSetColumnModel( );