Class GenericEMFPropertySection
- java.lang.Object
-
- org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
-
- org.palladiosimulator.editors.commons.tabs.GenericEMFPropertySection
-
- All Implemented Interfaces:
ISection
- Direct Known Subclasses:
ComponentPropertySection
,InterfacePropertySection
public abstract class GenericEMFPropertySection extends AbstractPropertySection
-
-
Field Summary
-
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
-
-
Constructor Summary
Constructors Constructor Description GenericEMFPropertySection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage)
This method sets up the property sheet section using a template methodprotected abstract EClass
getEClassToEdit()
The EClass of the objects which can be displayed in this property sheet.protected abstract Collection<EMFPropertySectionFieldInfo>
getEditableTextFields()
Returns a list of edit fields which are used to display features of EMF meta-model classesvoid
setInput(IWorkbenchPart part, ISelection selection)
The model object which should be edited in the tab sheet is passed in here-
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, refresh, shouldUseExtraSpace
-
-
-
-
Method Detail
-
createControls
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage)
This method sets up the property sheet section using a template method- Specified by:
createControls
in interfaceISection
- Overrides:
createControls
in classAbstractPropertySection
- See Also:
org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
-
getEditableTextFields
protected abstract Collection<EMFPropertySectionFieldInfo> getEditableTextFields()
Returns a list of edit fields which are used to display features of EMF meta-model classes- Returns:
- A list of EMF features which should be editable in this property sheet section
-
getEClassToEdit
protected abstract EClass getEClassToEdit()
The EClass of the objects which can be displayed in this property sheet. A single model object is edited in the property sheet. The features which are diplayed on the sheet are set using the getEditableTextFields method- Returns:
-
setInput
public void setInput(IWorkbenchPart part, ISelection selection)
The model object which should be edited in the tab sheet is passed in here- Specified by:
setInput
in interfaceISection
- Overrides:
setInput
in classAbstractPropertySection
- See Also:
org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#setInput(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
-
-