Bug 144519 TVT3.2:TCT787: pl: Lists on the page are too narrow
OS : RHEL 3.1 Must fix or not a must fix: NO Build date: 0529 Component name: BIRT Blocking: NO Language: pl Bitmap Location: V:\defects\pl\.20.002210.jpg Tester Name: Marek Gaskiewicz Steps to recreate the problem: Click Window->Open Perspective->Other->Report Design Right click anywhere on the report design Select Style->New Style context menu Page Break Problem Description: The lists are too narrow. This article was reassigned from Category:''TVT/Testing''.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/PageBreakPreferencePage.java
ComboBoxFieldEditor after = new ComboBoxFieldEditor( StyleHandle.PAGE_BREAK_AFTER_PROP,
				Messages.getString( ( (StyleHandle) model ).getPropertyHandle( StyleHandle.PAGE_BREAK_AFTER_PROP )
						.getDefn( )
						.getDisplayNameID( ) ),
				getChoiceArray( StyleHandle.PAGE_BREAK_AFTER_PROP ),
				getFieldEditorParent( ) );
		gdata = new GridData( );
		gdata.widthHint = 100;
		after.getComboBoxControl( getFieldEditorParent( ) )
				.setLayoutData( gdata );
		addField( after );
	}
	private String[][] getChoiceArray( String propName )
	{
		IChoiceSet ci = ChoiceSetFactory.getElementChoiceSet( ReportDesignConstants.STYLE_ELEMENT,
				propName );
		if ( ci != null )
		{
			IChoice[] cs = ci.getChoices( );
			String[][] rt = new String[cs.length][2];
			for ( int i = 0; i < cs.length; i++ )
			{
				rt[i][0] = cs[i].getDisplayName( );
				rt[i][1] = cs[i].getName( );
			}
			return rt;
		}
		return new String[0][2];
	}
}