UnitPropertyDescriptorProvider headHeightProvider = new UnitPropertyDescriptorProvider( SimpleMasterPageHandle.HEADER_HEIGHT_PROP, ReportDesignConstants.SIMPLE_MASTER_PAGE_ELEMENT ); UnitSection headHeightSection = new UnitSection( headHeightProvider.getDisplayName( ), container, true ); headHeightSection.setProvider( headHeightProvider ); headHeightSection.setWidth( 200 ); headHeightSection.setLayoutNum( 2 ); addSection( PageSectionId.MASTER_PAGE_HEAD_HEIGHT, headHeightSection );
	public void buildUI( Composite parent  )	{		super.buildUI( parent );		container.setLayout( WidgetUtil.createGridLayout( 6 ) );		TextPropertyDescriptorProvider nameProvider = new TextPropertyDescriptorProvider( MasterPageHandle.NAME_PROP,				ReportDesignConstants.MASTER_PAGE_ELEMENT );		TextSection nameSection = new TextSection( nameProvider.getDisplayName( ),				container,				true );		nameSection.setProvider( nameProvider );		nameSection.setWidth( 200 );		nameSection.setLayoutNum( 2 );		addSection( PageSectionId.MASTER_PAGE_NAME, nameSection );		ColorPropertyDescriptorProvider colorProvider = new ColorPropertyDescriptorProvider( StyleHandle.BACKGROUND_COLOR_PROP,				ReportDesignConstants.STYLE_ELEMENT );		ColorSection colorSection = new ColorSection( colorProvider.getDisplayName( ),				container,				true );		colorSection.setProvider( colorProvider );		colorSection.setWidth( 200 );		colorSection.setLayoutNum( 4 );		colorSection.setGridPlaceholder( 2, true );		addSection( PageSectionId.MASTER_PAGE_COLOR, colorSection );		UnitPropertyDescriptorProvider headHeightProvider = new UnitPropertyDescriptorProvider( SimpleMasterPageHandle.HEADER_HEIGHT_PROP,				ReportDesignConstants.SIMPLE_MASTER_PAGE_ELEMENT );		UnitSection headHeightSection = new UnitSection( headHeightProvider.getDisplayName( ),				container,				true );		headHeightSection.setProvider( headHeightProvider );		headHeightSection.setWidth( 200 );		headHeightSection.setLayoutNum( 2 );		addSection( PageSectionId.MASTER_PAGE_HEAD_HEIGHT, headHeightSection );		UnitPropertyDescriptorProvider footHeightProvider = new UnitPropertyDescriptorProvider( SimpleMasterPageHandle.FOOTER_HEIGHT_PROP,				ReportDesignConstants.SIMPLE_MASTER_PAGE_ELEMENT );		UnitSection footHeightSection = new UnitSection( headHeightProvider.getDisplayName( ),				container,				true );		footHeightSection.setProvider( footHeightProvider );		footHeightSection.setWidth( 200 );		footHeightSection.setLayoutNum( 4 );		footHeightSection.setGridPlaceholder( 2, true );		addSection( PageSectionId.MASTER_PAGE_FOOT_HEIGHT, footHeightSection );		ComboPropertyDescriptorProvider orientationProvider = new ComboPropertyDescriptorProvider( MasterPageHandle.ORIENTATION_PROP,				ReportDesignConstants.MASTER_PAGE_ELEMENT );		ComboSection orientationSection = new ComboSection( orientationProvider.getDisplayName( ),				container,				true );		orientationSection.setProvider( orientationProvider );		orientationSection.setGridPlaceholder( 4, true );		orientationSection.setWidth( 200 );		addSection( PageSectionId.MASTER_PAGE_ORIENTATION, orientationSection );				SeperatorSection seperatorSection = new SeperatorSection( container,				SWT.HORIZONTAL );		addSection( PageSectionId.MASTER_PAGE_SEPERATOR, seperatorSection );				ComboPropertyDescriptorProvider typeProvider = new ComboPropertyDescriptorProvider( MasterPageHandle.TYPE_PROP,				ReportDesignConstants.MASTER_PAGE_ELEMENT );		ComboSection typeSection = new ComboSection( typeProvider.getDisplayName( ),				container,				true );		typeSection.setProvider( typeProvider );		typeSection.setGridPlaceholder( 4, true );		typeSection.setWidth( 200 );		addSection( PageSectionId.MASTER_PAGE_TYPE, typeSection );				UnitPropertyDescriptorProvider widthProvider = new UnitPropertyDescriptorProvider( MasterPageHandle.WIDTH_PROP,				ReportDesignConstants.MASTER_PAGE_ELEMENT );		UnitSection widthSection = new UnitSection( widthProvider.getDisplayName( ),				container,				true );		widthSection.setProvider( widthProvider );		widthSection.setWidth( 200 );		widthSection.setLayoutNum( 2 );		addSection( PageSectionId.MASTER_PAGE_WIDTH, widthSection );		UnitPropertyDescriptorProvider heightProvider = new UnitPropertyDescriptorProvider( MasterPageHandle.HEIGHT_PROP,				ReportDesignConstants.MASTER_PAGE_ELEMENT );		UnitSection heightSection = new UnitSection( heightProvider.getDisplayName( ),				container,				true );		heightSection.setProvider( heightProvider );		heightSection.setWidth( 200 );		heightSection.setLayoutNum( 4 );		heightSection.setGridPlaceholder( 2, true );		addSection( PageSectionId.MASTER_PAGE_HEIGHT, heightSection );		// WidgetUtil.buildGridControl( container, propertiesMap,		// ReportDesignConstants.MASTER_PAGE_ELEMENT,		// MasterPageHandle.NAME_PROP, 1, false );		// WidgetUtil.buildGridControl( container, propertiesMap,		// ReportDesignConstants.STYLE_ELEMENT,		// StyleHandle.BACKGROUND_COLOR_PROP, 1, false );		//				// WidgetUtil.createGridPlaceholder( container, 1, true );		/*		 * WidgetUtil.buildGridControl( container, propertiesMap,		 * ReportDesignConstants.MASTER_PAGE_ELEMENT,		 * MasterPageHandle.ORIENTATION_PROP, 1, false );		 * 		 * Label separator = new Label( container, SWT.SEPARATOR | SWT.HORIZONTAL );		 * GridData data = new GridData( ); data.horizontalSpan = 5;		 * data.grabExcessHorizontalSpace = false; data.horizontalAlignment =		 * GridData.FILL; separator.setLayoutData( data );		 * 		 * WidgetUtil.buildGridControl( container, propertiesMap,		 * ReportDesignConstants.MASTER_PAGE_ELEMENT,		 * MasterPageHandle.TYPE_PROP, 1, false ); pageSizeDescriptor =		 * (IPropertyDescriptor) propertiesMap.get( MasterPageHandle.TYPE_PROP );		 * 		 * WidgetUtil.createGridPlaceholder( container, 3, false );		 * 		 * widthPane = (Composite) WidgetUtil.buildGridControl( container,		 * propertiesMap, ReportDesignConstants.MASTER_PAGE_ELEMENT,		 * MasterPageHandle.WIDTH_PROP, 1, false );		 * 		 * heightPane = (Composite) WidgetUtil.buildGridControl( container,		 * propertiesMap, ReportDesignConstants.MASTER_PAGE_ELEMENT,		 * MasterPageHandle.HEIGHT_PROP, 1, false );		 */		createSections( );		layoutSections( );	}