Modelers

org.topcased.modeler.editor.properties.sections
Class AbstractComboPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
          extended by org.topcased.modeler.editor.properties.sections.AbstractComboPropertySection
All Implemented Interfaces:
org.eclipse.ui.views.properties.tabbed.ISection

public abstract class AbstractComboPropertySection
extends AbstractModelerPropertySection

An abstract implementation of a section with a field using a CSingleObjectChooser composite (CCombo with a Button).


Field Summary
protected  CSingleObjectChooser cSingleObjectChooser
          The combo box control for the section.
protected  boolean isRefreshing
          A boolean that store if refreshing is happening and no model modifications should be performed
 
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
AbstractComboPropertySection()
           
 
Method Summary
 void createControls(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
           
protected abstract  java.lang.Object[] getComboFeatureValues()
          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.Object getFeatureValue()
          Get the current feature value of the selected model object.
protected abstract  org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
          Get the LabelProvider to use to display the Object contained in the ComboViewer
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  void hookListeners()
          Adds the listeners on the widgets
 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

isRefreshing

protected boolean isRefreshing
A boolean that store if refreshing is happening and no model modifications should be performed


cSingleObjectChooser

protected CSingleObjectChooser cSingleObjectChooser
The combo box control for the section.

Constructor Detail

AbstractComboPropertySection

public AbstractComboPropertySection()
Method Detail

createControls

public void createControls(org.eclipse.swt.widgets.Composite parent,
                           org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
Specified by:
createControls in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
createControls in class AbstractModelerPropertySection
See Also:
ISection.createControls(org.eclipse.swt.widgets.Composite, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)

hookListeners

protected void hookListeners()
Adds the listeners on the widgets


handleComboModified

protected void handleComboModified()
Handle the combo modified event.


refresh

public void refresh()
Specified by:
refresh in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
refresh in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
ISection.refresh()

getLabelProvider

protected abstract org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
Get the LabelProvider to use to display the Object contained in the ComboViewer

Returns:
IBaseLabelProvider

getFeature

protected abstract EStructuralFeature getFeature()
Get the feature for the combo field for the section.

Returns:
the feature for the text.

getFeatureValue

protected abstract java.lang.Object getFeatureValue()
Get the current feature value of the selected model object.

Returns:
the feature value to select in the ccombo.

getComboFeatureValues

protected abstract java.lang.Object[] getComboFeatureValues()
Get the enumeration values of the feature for the combo field for the section.

Returns:
the list of values of the feature as text.

getLabelText

protected abstract java.lang.String getLabelText()
Get the label for the combo field for the section.

Returns:
the label for the text field.

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.