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/OutputColumnDefnPage.java
column = new TableColumn( viewer.getViewer( ).getTable( ), SWT.LEFT );
		column.setText( Messages.getString( "dataset.editor.title.displayName" ) ); 
		column.setWidth( 100 );
		
		TableColumn displayNameKeyColumn = new TableColumn( viewer.getViewer( ).getTable( ), SWT.LEFT );
		displayNameKeyColumn.setText( Messages.getString( "dataset.editor.title.displayNameKey" ) ); 
		displayNameKeyColumn.setWidth( 100 );
	}
	
	protected ColumnHintHandle addNewDefn( ColumnDefn defn )
			throws SemanticException
	{
		ColumnHintHandle column = null;
		String name = defn.getColumnName( );
		if ( rsColumnMap != null )
		{
			if ( rsColumnMap.get( name ) != null )
			{
				name = getUniqueColumnName( );
				defn.setColumnName( name );
			}
			ResultSetColumnHandle rsHandle;
			if ( rsColumns != null && columnHints != null )
			{
				rsColumns.addItem( defn.getResultSetColumn( ) );
				column = (ColumnHintHandle) columnHints.addItem( defn.getColumnHint( ) );
				rsColumnMap.put( name, defn.getResultSetColumn( ) );
				columnHintMap.put( name, defn.getColumnHint( ) );
			}
		}