Class EventTypesEditorSection
- java.lang.Object
-
- org.palladiosimulator.editors.commons.tabs.generic.EditorSection
-
- org.palladiosimulator.editors.commons.tabs.operations.EventTypesEditorSection
-
- All Implemented Interfaces:
Observer
public class EventTypesEditorSection extends EditorSection
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
columnNames
static int
EVENTTYPENAME_COLUMN_INDEX
static int
ICON_COLUMN_INDEX
static String
OPERATIONS_ICON_COLUMN
Columns of a table, which is used into operations tablestatic String
OWNEDPARAMETER_NAME_COLUMN
static String
OWNEDPARAMETER_TYPE_COLUMN
static int
PARAMETER_NAME_COLUMN_INDEX
static int
PARAMETER_TYPE_COLUMN_INDEX
static String
SERVICENAME_COLUMN
-
Fields inherited from class org.palladiosimulator.editors.commons.tabs.generic.EditorSection
viewer
-
-
Constructor Summary
Constructors Constructor Description EventTypesEditorSection(Composite composite)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canAddButonCreated()
protected boolean
canDeleteButonCreated()
protected SelectionListener
createAddButtonActionListener()
Add Action button.protected SelectionListener
createDeleteButtonListener()
Default deletion button.protected void
createTableColumns(Table table)
Create the table columns.protected CellEditor[]
createViewerCellEditors(Table table)
Create a CellEditors for Viewer.protected ObservableCellModifier
createViewerCellModifier()
Initialise the cell modifier.EventTypeAddActionListener
getAddButtonListener()
org.palladiosimulator.pcm.repository.EventType
getSelectedEventType()
protected String[]
getTableColumnNames()
protected boolean
inputValidation(EObject object)
-
Methods inherited from class org.palladiosimulator.editors.commons.tabs.generic.EditorSection
addViewerSelectionChangedListener, createTableSection, createToolBar, getSelectedObject, getViewer, refresh, setDeleteButtonEnabled, setDeleteButtonListener, setViewerCellModifier, setViewerCellModifier, setViewerContentProvider, setViewerInput, setViewerLabelProvider, update
-
-
-
-
Field Detail
-
ICON_COLUMN_INDEX
public static final int ICON_COLUMN_INDEX
- See Also:
- Constant Field Values
-
EVENTTYPENAME_COLUMN_INDEX
public static final int EVENTTYPENAME_COLUMN_INDEX
- See Also:
- Constant Field Values
-
PARAMETER_NAME_COLUMN_INDEX
public static final int PARAMETER_NAME_COLUMN_INDEX
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_COLUMN_INDEX
public static final int PARAMETER_TYPE_COLUMN_INDEX
- See Also:
- Constant Field Values
-
OPERATIONS_ICON_COLUMN
public static final String OPERATIONS_ICON_COLUMN
Columns of a table, which is used into operations table- See Also:
- Constant Field Values
-
OWNEDPARAMETER_NAME_COLUMN
public static final String OWNEDPARAMETER_NAME_COLUMN
- See Also:
- Constant Field Values
-
OWNEDPARAMETER_TYPE_COLUMN
public static final String OWNEDPARAMETER_TYPE_COLUMN
- See Also:
- Constant Field Values
-
SERVICENAME_COLUMN
public static final String SERVICENAME_COLUMN
- See Also:
- Constant Field Values
-
columnNames
public static String[] columnNames
-
-
Constructor Detail
-
EventTypesEditorSection
public EventTypesEditorSection(Composite composite)
Constructor
-
-
Method Detail
-
createViewerCellEditors
protected CellEditor[] createViewerCellEditors(Table table)
Description copied from class:EditorSection
Create a CellEditors for Viewer.- Specified by:
createViewerCellEditors
in classEditorSection
-
createViewerCellModifier
protected ObservableCellModifier createViewerCellModifier()
Initialise the cell modifier.- Specified by:
createViewerCellModifier
in classEditorSection
- Returns:
- The cell modifier.
- See Also:
EditorSection.createViewerCellModifier()
-
createTableColumns
protected void createTableColumns(Table table)
Create the table columns.- Specified by:
createTableColumns
in classEditorSection
- Parameters:
table
- The table object to add the columns to.- See Also:
EditorSection.createTableColumns(org.eclipse.swt.widgets.Table)
-
createAddButtonActionListener
protected SelectionListener createAddButtonActionListener()
Add Action button. Note: This method has been aligned with he OperationsEditorserction and there was no explanation why the implementation does exactly the opposite of the included comment.- Specified by:
createAddButtonActionListener
in classEditorSection
- See Also:
EditorSection.createAddButtonActionListener()
-
createDeleteButtonListener
protected SelectionListener createDeleteButtonListener()
Default deletion button.- Specified by:
createDeleteButtonListener
in classEditorSection
- See Also:
EditorSection.createDeleteButtonListener()
-
getTableColumnNames
protected String[] getTableColumnNames()
- Specified by:
getTableColumnNames
in classEditorSection
-
canAddButonCreated
protected boolean canAddButonCreated()
- Specified by:
canAddButonCreated
in classEditorSection
-
canDeleteButonCreated
protected boolean canDeleteButonCreated()
- Specified by:
canDeleteButonCreated
in classEditorSection
-
inputValidation
protected boolean inputValidation(EObject object)
- Specified by:
inputValidation
in classEditorSection
-
getSelectedEventType
public org.palladiosimulator.pcm.repository.EventType getSelectedEventType()
-
getAddButtonListener
public EventTypeAddActionListener getAddButtonListener()
- Returns:
- the addButtonListener
-
-