Class MultipleSelectionEditor
- java.lang.Object
-
- net.ssehub.easy.producer.ui.confModel.MultipleSelectionEditor
-
-
Field Summary
Fields Modifier and Type Field Description private DisplayNameProvidernameProviderprivate java.util.Map<java.lang.String,AbstractVariable>possibleVariablesprivate java.util.List<AbstractVariable>selectedValuesprivate org.eclipse.swt.widgets.Tabletable
-
Constructor Summary
Constructors Constructor Description MultipleSelectionEditor(org.eclipse.swt.widgets.Composite composite, IDatatype refType, IDecisionVariable refVariable)Constructor for aMultipleSelectionEditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.ControlgetControl()Returns the actual SWT control of the editor.java.lang.ObjectgetValue()Returns the value of the editor.booleanisPseudoEditor()Returns whether this representation actually holds an editable SWT element or whether it is a pseudo editor such as a Label.voidrefreshContents()Refreshes the contents of this editor.voidsetValue(java.lang.Object object)Changes the value of the editor.voidupdateSelectedValues()Method to check selected references in table and update list of selected values.
-
-
-
Field Detail
-
table
private org.eclipse.swt.widgets.Table table
-
selectedValues
private java.util.List<AbstractVariable> selectedValues
-
possibleVariables
private java.util.Map<java.lang.String,AbstractVariable> possibleVariables
-
nameProvider
private DisplayNameProvider nameProvider
-
-
Constructor Detail
-
MultipleSelectionEditor
public MultipleSelectionEditor(org.eclipse.swt.widgets.Composite composite, IDatatype refType, IDecisionVariable refVariable)Constructor for aMultipleSelectionEditor.- Parameters:
composite- composite for editorrefType- IDatatype for current referencerefVariable- IDecisionVariable from current reference
-
-
Method Detail
-
updateSelectedValues
public void updateSelectedValues()
Method to check selected references in table and update list of selected values.
-
getControl
public org.eclipse.swt.widgets.Control getControl()
Description copied from interface:GUIEditorReturns the actual SWT control of the editor.- Specified by:
getControlin interfaceGUIEditor- Returns:
- the control
-
getValue
public java.lang.Object getValue()
Description copied from interface:GUIEditorReturns the value of the editor.
-
setValue
public void setValue(java.lang.Object object)
Description copied from interface:GUIEditorChanges the value of the editor.
-
isPseudoEditor
public boolean isPseudoEditor()
Description copied from interface:GUIEditorReturns whether this representation actually holds an editable SWT element or whether it is a pseudo editor such as a Label.- Specified by:
isPseudoEditorin interfaceGUIEditor- Returns:
trueif it is a pseudo editor,falseelse
-
refreshContents
public void refreshContents()
Description copied from interface:GUIEditorRefreshes the contents of this editor.- Specified by:
refreshContentsin interfaceGUIEditor
-
-