/** * @see * org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, * org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage) */ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); parent = getWidgetFactory().createSection(parent, Messages.LocationSection_locationLabel, true, 4); section = (ExpandableComposite) parent.getParent(); ASPropertyWidget pw = createWidget4Property(parent, JRDesignElement.PROPERTY_X); CLabel lbl = pw.getLabel(); lbl.setText(Messages.LocationSection_xCoordinateLabel); lbl.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); pw = createWidget4Property(parent, JRDesignElement.PROPERTY_Y); lbl = pw.getLabel(); lbl.setText(Messages.LocationSection_yCoordinateLabel); lbl.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); ASPropertyWidget w = createWidget4Property(parent, JRDesignElement.PROPERTY_POSITION_TYPE); GridData gd = new GridData(); gd.horizontalSpan = 3; w.getControl().setLayoutData(gd); }
public ASPropertyWidget createWidget(Composite parent, AbstractSection section) { // return new SPReadComboEnum(parent, section, this); ASPropertyWidget widget = new SPRWPopUpCombo(parent, section, this, items); HelpSystem.bindToHelp(this, widget.getControl()); return widget; }