public class SourceExtensionUtil extends Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
SourceExtensionUtil.GenericSourceExtensionContext
Generic source extension context.
|
Modifier | Constructor and Description |
---|---|
protected |
SourceExtensionUtil()
All access via static methods.
|
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,
ManagedObjectSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyCheckbox(String label,
String name,
boolean defaultValue,
String trueValue,
String falseValue,
org.eclipse.swt.widgets.Composite container,
SectionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
protected static Property |
createPropertyCheckbox(String label,
String name,
boolean defaultValue,
String trueValue,
String falseValue,
org.eclipse.swt.widgets.Composite container,
SourceExtensionUtil.GenericSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyCheckbox(String label,
String name,
boolean defaultValue,
String trueValue,
String falseValue,
org.eclipse.swt.widgets.Composite container,
WorkSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyClass(String label,
String name,
org.eclipse.swt.widgets.Composite container,
GovernanceSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyClass(String label,
String name,
org.eclipse.swt.widgets.Composite container,
ManagedObjectSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyClass(String label,
String name,
org.eclipse.swt.widgets.Composite container,
SectionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
protected static Property |
createPropertyClass(String label,
String name,
org.eclipse.swt.widgets.Composite container,
SourceExtensionUtil.GenericSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyClass(String label,
String name,
org.eclipse.swt.widgets.Composite container,
WorkSourceExtensionContext 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,
SectionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
protected static Property |
createPropertyCombo(String label,
String name,
String defaultValue,
String[] values,
org.eclipse.swt.widgets.Composite container,
SourceExtensionUtil.GenericSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static void |
createPropertyList(String label,
org.eclipse.swt.widgets.Composite container,
ManagedObjectSourceExtensionContext context,
String... hidePropertyNames)
Creates the display for the input
PropertyList . |
static void |
createPropertyList(String label,
org.eclipse.swt.widgets.Composite container,
SectionSourceExtensionContext context,
String... hidePropertyNames)
Creates the display for the input
PropertyList . |
protected static void |
createPropertyList(String label,
org.eclipse.swt.widgets.Composite container,
SourceExtensionUtil.GenericSourceExtensionContext context,
String... hidePropertyNames)
Creates the display for the input
PropertyList . |
static void |
createPropertyList(String label,
org.eclipse.swt.widgets.Composite container,
WorkSourceExtensionContext context,
String... hidePropertyNames)
Creates the display for the input
PropertyList . |
static Property |
createPropertyResource(String label,
String name,
org.eclipse.swt.widgets.Composite container,
ManagedObjectSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
protected static Property |
createPropertyResource(String label,
String name,
org.eclipse.swt.widgets.Composite container,
SourceExtensionUtil.GenericSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static Property |
createPropertyResource(String label,
String name,
org.eclipse.swt.widgets.Composite container,
WorkSourceExtensionContext 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,
ManagedObjectSourceExtensionContext 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,
SectionSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
protected static Property |
createPropertyText(String label,
String name,
String defaultValue,
org.eclipse.swt.widgets.Composite container,
SourceExtensionUtil.GenericSourceExtensionContext 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,
WorkSourceExtensionContext context,
PropertyValueChangeListener listener)
Creates the display for the input
Property . |
static void |
informNoPropertiesRequired(org.eclipse.swt.widgets.Composite container)
Creates the display to inform that no
Property instances are
required. |
static void |
loadPropertyLayout(org.eclipse.swt.widgets.Composite container)
Loads the property layout for creating property displays.
|
protected SourceExtensionUtil()
public static void loadPropertyLayout(org.eclipse.swt.widgets.Composite container)
container
- Composite
to contain the properties.public static void informNoPropertiesRequired(org.eclipse.swt.widgets.Composite container)
Property
instances are
required.container
- Composite
to provide display on.public static Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- WorkSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- ManagedObjectSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, GovernanceSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- GovernanceSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, SectionSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- SectionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.protected static Property createPropertyClass(String label, String name, org.eclipse.swt.widgets.Composite container, SourceExtensionUtil.GenericSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- SourceExtensionUtil.GenericSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyResource(String label, String name, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- WorkSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static Property createPropertyResource(String label, String name, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- ManagedObjectSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.protected static Property createPropertyResource(String label, String name, org.eclipse.swt.widgets.Composite container, SourceExtensionUtil.GenericSourceExtensionContext context, PropertyValueChangeListener listener)
Property
.label
- Label for the Property
.name
- Name of the Property
.container
- Composite
to add display Control
instances.context
- SourceExtensionUtil.GenericSourceExtensionContext
.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, ManagedObjectSourceExtensionContext 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
- ManagedObjectSourceExtensionContext
.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, WorkSourceExtensionContext 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
- WorkSourceExtensionContext
.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, SectionSourceExtensionContext 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
- SectionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.protected static Property createPropertyText(String label, String name, String defaultValue, org.eclipse.swt.widgets.Composite container, SourceExtensionUtil.GenericSourceExtensionContext 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
- SourceExtensionUtil.GenericSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the Text
.public static void createPropertyList(String label, org.eclipse.swt.widgets.Composite container, ManagedObjectSourceExtensionContext context, String... hidePropertyNames)
PropertyList
.label
- Label for the Property
.container
- Composite
to add display Control
instances.context
- ManagedObjectSourceExtensionContext
.hidePropertyNames
- Property
names to hide.public static void createPropertyList(String label, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext context, String... hidePropertyNames)
PropertyList
.label
- Label for the Property
.container
- Composite
to add display Control
instances.context
- WorkSourceExtensionContext
.hidePropertyNames
- Property
names to hide.public static void createPropertyList(String label, org.eclipse.swt.widgets.Composite container, SectionSourceExtensionContext context, String... hidePropertyNames)
PropertyList
.label
- Label for the Property
.container
- Composite
to add display Control
instances.context
- SectionSourceExtensionContext
.hidePropertyNames
- Property
names to hide.protected static void createPropertyList(String label, org.eclipse.swt.widgets.Composite container, SourceExtensionUtil.GenericSourceExtensionContext context, String... hidePropertyNames)
PropertyList
.label
- Label for the Property
.container
- Composite
to add display Control
instances.context
- SourceExtensionUtil.GenericSourceExtensionContext
.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, ManagedObjectSourceExtensionContext 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
- ManagedObjectSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.public static Property createPropertyCheckbox(String label, String name, boolean defaultValue, String trueValue, String falseValue, org.eclipse.swt.widgets.Composite container, WorkSourceExtensionContext 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
- WorkSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.public static Property createPropertyCheckbox(String label, String name, boolean defaultValue, String trueValue, String falseValue, org.eclipse.swt.widgets.Composite container, SectionSourceExtensionContext 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
- SectionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.protected static Property createPropertyCheckbox(String label, String name, boolean defaultValue, String trueValue, String falseValue, org.eclipse.swt.widgets.Composite container, SourceExtensionUtil.GenericSourceExtensionContext 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
- SourceExtensionUtil.GenericSourceExtensionContext
.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, SectionSourceExtensionContext 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
- SectionSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.protected static Property createPropertyCombo(String label, String name, String defaultValue, String[] values, org.eclipse.swt.widgets.Composite container, SourceExtensionUtil.GenericSourceExtensionContext 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
- SourceExtensionUtil.GenericSourceExtensionContext
.listener
- PropertyValueChangeListener
. May be null
.Property
for the SWT.CHECK
Button
.Copyright © 2005–2016. All rights reserved.