|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.views.properties.tabbed.AbstractPropertySection
org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
org.topcased.modeler.editor.properties.sections.AbstractEnumerationPropertySection
public abstract class AbstractEnumerationPropertySection
An abstract implementation of a section with a enumeration field using a combo box (pulldown).
| Field Summary | |
|---|---|
protected org.eclipse.swt.custom.CCombo |
combo
The combo box control for the section. |
| Fields inherited from class org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection |
|---|
eObject, eObjectList, propertySheetPage, selectedEditPart |
| Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
|---|
STANDARD_LABEL_WIDTH |
| Constructor Summary | |
|---|---|
AbstractEnumerationPropertySection()
|
|
| Method Summary | |
|---|---|
void |
createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
|
protected abstract java.lang.String[] |
getEnumerationFeatureValues()
Get the enumeration values of the feature for the combo field for the section. |
protected abstract EStructuralFeature |
getFeature()
Get the feature for the combo field for the section. |
protected abstract java.lang.String |
getFeatureAsText()
Get the value of the feature as text for the combo field for the section. |
protected abstract java.lang.Object |
getFeatureValue(int index)
Get the new value of the feature for the text field for the section. |
protected abstract java.lang.String |
getLabelText()
Get the label for the combo field for the section. |
protected void |
handleComboModified()
Handle the combo modified event. |
protected abstract boolean |
isEqual(int index)
Determine if the provided index of the enumeration is equal to the current setting of the enumeration property. |
void |
refresh()
|
| Methods inherited from class org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection |
|---|
getChoices, getStandardLabelWidth, setInput |
| Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
|---|
aboutToBeHidden, aboutToBeShown, dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.swt.custom.CCombo combo
| Constructor Detail |
|---|
public AbstractEnumerationPropertySection()
| Method Detail |
|---|
public void createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
createControls in interface org.eclipse.ui.views.properties.tabbed.ISectioncreateControls in class AbstractModelerPropertySectionISection.createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)protected void handleComboModified()
public void refresh()
refresh in interface org.eclipse.ui.views.properties.tabbed.ISectionrefresh in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySectionISection.refresh()protected abstract boolean isEqual(int index)
index - the new index in the enumeration.
true if the new index value is equal to the
current property setting.protected abstract EStructuralFeature getFeature()
protected abstract java.lang.String[] getEnumerationFeatureValues()
protected abstract java.lang.String getFeatureAsText()
protected abstract java.lang.Object getFeatureValue(int index)
index - the new index in the enumeration.
protected abstract java.lang.String getLabelText()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.