Class GenericEMFPropertySection

    • 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
        Specified by:
        createControls in interface ISection
        Overrides:
        createControls in class AbstractPropertySection
        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 interface ISection
        Overrides:
        setInput in class AbstractPropertySection
        See Also:
        org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#setInput(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)