public class WoofSourceExtensionUtil extends SourceExtensionUtil
SourceExtensionUtil.GenericSourceExtensionContext
Constructor and Description |
---|
WoofSourceExtensionUtil() |
Modifier and Type | Method and Description |
---|---|
static Property |
createPropertyCheckbox(String label,
String name,
boolean defaultValue,
String trueValue,
String falseValue,
org.eclipse.swt.widgets.Composite container,
WoofTemplateExtensionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyClass(String label,
String name,
org.eclipse.swt.widgets.Composite container,
WoofTemplateExtensionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyCombo(String label,
String name,
String defaultValue,
String[] values,
org.eclipse.swt.widgets.Composite container,
WoofTemplateExtensionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static void |
createPropertyList(String label,
org.eclipse.swt.widgets.Composite container,
WoofTemplateExtensionSourceExtensionContext context,
String... hidePropertyNames)
Creates the display for the input
PropertyList . |
static Property |
createPropertyResource(String label,
String name,
org.eclipse.swt.widgets.Composite container,
WoofTemplateExtensionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyText(String label,
String name,
String defaultValue,
org.eclipse.swt.widgets.Composite container,
WoofTemplateExtensionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
createPropertyCheckbox, createPropertyCheckbox, createPropertyCheckbox, createPropertyCheckbox, createPropertyClass, createPropertyClass, createPropertyClass, createPropertyClass, createPropertyClass, createPropertyCombo, createPropertyCombo, createPropertyList, createPropertyList, createPropertyList, createPropertyList, createPropertyResource, createPropertyResource, createPropertyResource, createPropertyText, createPropertyText, createPropertyText, createPropertyText, informNoPropertiesRequired, loadPropertyLayout
public static Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, WoofTemplateExtensionSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- WoofTemplateExtensionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyResource(String label, String name, org.eclipse.swt.widgets.Composite container, WoofTemplateExtensionSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- WoofTemplateExtensionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyText(String label, String name, String defaultValue, org.eclipse.swt.widgets.Composite container, WoofTemplateExtensionSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.defaultValue
- Default value for the Property
.container
- Composite
to add display Control
instances.context
- WoofTemplateExtensionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static void createPropertyList(String label, org.eclipse.swt.widgets.Composite container, WoofTemplateExtensionSourceExtensionContext context, String... hidePropertyNames)
PropertyList
.label
- Label for the Property
.container
- Composite
to add display Control
instances.context
- WoofTemplateExtensionSourceExtensionContext
.hidePropertyNames
- Property
names to hide.public static Property createPropertyCheckbox(String label, String name, boolean defaultValue, String trueValue, String falseValue, org.eclipse.swt.widgets.Composite container, WoofTemplateExtensionSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.defaultValue
- Default value for the Property
.trueValue
- Value should Property
be checked.falseValue
- Value should Property
be unchecked.container
- Composite
to add display Control
instances.context
- WoofTemplateExtensionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.public static Property createPropertyCombo(String label, String name, String defaultValue, String[] values, org.eclipse.swt.widgets.Composite container, WoofTemplateExtensionSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.defaultValue
- Default value for the Property
.values
- Values to list in the Combo
.container
- Composite
to add display Control
instances.context
- WoofTemplateExtensionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.Copyright © 2005–2016. All rights reserved.