de.uka.ipd.sdq.pcmbench.tabs
Class GenericEMFPropertySection

java.lang.Object
  extended by AbstractPropertySection
      extended by de.uka.ipd.sdq.pcmbench.tabs.GenericEMFPropertySection
Direct Known Subclasses:
ComponentPropertySection, InterfacePropertySection

public abstract class GenericEMFPropertySection
extends AbstractPropertySection

Author:
Snowball

Constructor Summary
GenericEMFPropertySection()
           
 
Method Summary
 void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage)
          This method sets up the property sheet section using a template method
protected 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 classes
 void setInput(IWorkbenchPart part, ISelection selection)
          The model object which should be edited in the tab sheet is passed in here
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericEMFPropertySection

public GenericEMFPropertySection()
Method Detail

createControls

public void createControls(Composite parent,
                           TabbedPropertySheetPage tabbedPropertySheetPage)
This method sets up the property sheet section using a template method

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

See Also:
org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#setInput(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)