Class EditorSection


  • public abstract class EditorSection
    extends Object
    Modified version of org.palladiosimulator.editors.commons.tabs.generic.EditorSection to suit the properties sheet of the Sirius Editors
    • Constructor Detail

      • EditorSection

        public EditorSection​(Composite composite)
    • Method Detail

      • createToolBar

        protected ToolBar createToolBar()
      • createTableSection

        protected void createTableSection​(ToolBar toolBar)
        Create the section with Table and TableViewer.
      • createTableColumns

        protected abstract void createTableColumns​(Table table)
        Create the table columns.
      • inputValidation

        protected abstract boolean inputValidation​(EObject eObject)
      • setDeleteButtonListener

        protected void setDeleteButtonListener​(TableViewer viewer)
        Create a SelectionListener for the Add-Button and set him to TableViewer as 'SelectionChangedListener'. Thus those becomes available element, which was selected in the TableViewer, for the DeleteAction
        Parameters:
        viewer - instance of TableViewer
      • createDeleteButtonListener

        protected abstract SelectionListener createDeleteButtonListener()
        Set a SelectionListener for the Delete-Button
      • getTableColumnNames

        protected abstract String[] getTableColumnNames()
      • canAddButonCreated

        protected abstract boolean canAddButonCreated()
      • canDeleteButonCreated

        protected abstract boolean canDeleteButonCreated()
      • createViewerCellEditors

        protected abstract CellEditor[] createViewerCellEditors​(Table table)
        Create a CellEditors for Viewer.
      • setViewerCellModifier

        public void setViewerCellModifier​(ICellModifier modifier)
        Set a CellModifier for TabelViewer.
      • createAddButtonActionListener

        protected abstract SelectionListener createAddButtonActionListener()
        Create a SelectionListener for the Add-Button
      • setViewerInput

        public void setViewerInput​(Object input)
        Set a input for the TableViewer
      • setViewerContentProvider

        public void setViewerContentProvider​(IContentProvider contentProvider)
        Set a ContentProvider for the TableViewer
      • setViewerLabelProvider

        public void setViewerLabelProvider​(IBaseLabelProvider labelProvider)
        Set a LabelProvider for the TableViewer
      • refresh

        public void refresh()
      • setDeleteButtonEnabled

        protected void setDeleteButtonEnabled​(boolean enabled)
      • getSelectedObject

        public EObject getSelectedObject()
      • setEnabled

        public void setEnabled​(boolean isEnabled)