addSection( PageSectionId.LISTING_SECTION_BREAK_AFTER, masterPageSection );
addSection( PageSectionId.LISTING_SECTION_MASTER_PAGE, masterPageSection );
	public void buildUI( Composite parent  )	{		super.buildUI( parent );		container.setLayout( WidgetUtil.createGridLayout( 6 ) );		ComboPropertyDescriptorProvider breakBeforeProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_BEFORE_PROP,				ReportDesignConstants.STYLE_ELEMENT );		ComboSection breakBeforeSection = new ComboSection( breakBeforeProvider.getDisplayName( ),				container,				true );		breakBeforeSection.setProvider( breakBeforeProvider );		breakBeforeSection.setLayoutNum( 2 );		breakBeforeSection.setWidth( 200 );		addSection( PageSectionId.LISTING_SECTION_BREAK_BEFORE, breakBeforeSection );				ComboPropertyDescriptorProvider breakAfterProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_AFTER_PROP,				ReportDesignConstants.STYLE_ELEMENT );		ComboSection breakAfterSection = new ComboSection( breakAfterProvider.getDisplayName( ),				container,				true );		breakAfterSection.setProvider( breakAfterProvider );		breakAfterSection.setLayoutNum( 4 );		breakAfterSection.setGridPlaceholder( 2, true );		breakAfterSection.setWidth( 200 );		addSection( PageSectionId.LISTING_SECTION_BREAK_AFTER, breakAfterSection );				ComboPropertyDescriptorProvider breakInsideProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_INSIDE_PROP,				ReportDesignConstants.STYLE_ELEMENT );		ComboSection breakInsideSection = new ComboSection( breakInsideProvider.getDisplayName( ),				container,				true );		breakInsideSection.setProvider( breakInsideProvider );		breakInsideSection.setLayoutNum( 2 );		breakInsideSection.setWidth( 200 );		addSection( PageSectionId.LISTING_SECTION_BREAK_INSIDE, breakInsideSection );				TextPropertyDescriptorProvider internalProvider = new TextPropertyDescriptorProvider( ListingHandle.PAGE_BREAK_INTERVAL_PROP,				ReportDesignConstants.LISTING_ITEM );		TextSection intervalSection = new TextSection( internalProvider.getDisplayName( ),				container,				true );		intervalSection.setProvider( internalProvider );		intervalSection.setLayoutNum( 2 );		intervalSection.setLayoutNum( 4 );		intervalSection.setGridPlaceholder( 2, true );		addSection( PageSectionId.LISTING_SECTION_INTERVAL, intervalSection );				SeperatorSection seperator = new SeperatorSection( container, SWT.HORIZONTAL );		addSection( PageSectionId.LISTING_SECTION_SEPERATOR, seperator );				SimpleComboPropertyDescriptorProvider masterPageProvider = new SimpleComboPropertyDescriptorProvider( StyleHandle.MASTER_PAGE_PROP,				ReportDesignConstants.STYLE_ELEMENT );		SimpleComboSection masterPageSection = new SimpleComboSection( masterPageProvider.getDisplayName( ),				container,				true );		masterPageSection.setProvider( masterPageProvider );		masterPageSection.setLayoutNum( 2 );		masterPageSection.setWidth( 200 );		addSection( PageSectionId.LISTING_SECTION_BREAK_AFTER, masterPageSection );		/*		 * 		 * String[] properties = { StyleHandle.PAGE_BREAK_BEFORE_PROP,		 * StyleHandle.PAGE_BREAK_AFTER_PROP, //		 * StyleHandle.PAGE_BREAK_INSIDE_PROP, }; for ( int i = 0; i <		 * properties.length; i++ ) {		 * 		 * WidgetUtil.buildGridControl( container, propertiesMap,		 * ReportDesignConstants.STYLE_ELEMENT, properties[i], 1, 200 );		 * if(properties[i].equals( StyleHandle.PAGE_BREAK_BEFORE_PROP )) {		 * WidgetUtil.buildGridControl( container, propertiesMap,		 * ReportDesignConstants.STYLE_ELEMENT, StyleHandle.MASTER_PAGE_PROP, 1,		 * 200 ); WidgetUtil.createGridPlaceholder( container, 1, true ); }else {		 * WidgetUtil.createGridPlaceholder( container, 3, true ); } }		 * 		 * 		 */		/*		 * WidgetUtil.createHorizontalLine( container, 5 ); repeatHeaderButton = new		 * Button( container, SWT.CHECK ); GridData gd = new GridData();		 * gd.horizontalSpan = 2; repeatHeaderButton.setLayoutData(gd);		 * repeatHeaderButton.setText(		 * Messages.getString("ListingSectionPage.RepeatHeader") );		 * //$NON-NLS-1$ repeatHeaderButton.addSelectionListener( new		 * SelectionListener(){		 * 		 * public void widgetSelected( SelectionEvent e ) {		 * setRepeatHeader(repeatHeaderButton.getSelection( )); }		 * 		 * public void widgetDefaultSelected( SelectionEvent e ) { // TODO		 * Auto-generated method stub }} );		 */		// Page break interval has been removed by Model, so the following code		// should also be removed.		// WidgetUtil.createHorizontalLine( container, 5 );		//		// WidgetUtil.buildGridControl( container,		// propertiesMap,		// ReportDesignConstants.LISTING_ITEM,		// ListingHandle.PAGE_BREAK_INTERVAL_PROP,		// 1,		// true );				RepeatHeaderDescriptorProvider repeatHeaderProvider = new RepeatHeaderDescriptorProvider( );		CheckSection repeatHeaderSection = new CheckSection( container, true );		repeatHeaderSection.setProvider( repeatHeaderProvider );		repeatHeaderSection.setLayoutNum( 4 );		repeatHeaderSection.setGridPlaceholder( 2, true );		repeatHeaderSection.setWidth( 200 );		addSection( PageSectionId.LISTING_SECTION_REPEAT_HEADER, repeatHeaderSection );		createSections( );		layoutSections( );	}