Class ValueSelectionHelper
- java.lang.Object
-
- org.eclipse.emf.ecp.view.template.internal.tooling.util.ValueSelectionHelper
-
public abstract class ValueSelectionHelper extends java.lang.Object
- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description ValueSelectionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
openValueSelectionDialog(org.eclipse.swt.widgets.Shell shell, org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
Opens a dialog to select a possible value for a givenEStructuralFeature
.
-
-
-
Method Detail
-
openValueSelectionDialog
public static java.lang.Object openValueSelectionDialog(org.eclipse.swt.widgets.Shell shell, org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
Opens a dialog to select a possible value for a givenEStructuralFeature
. If the feature is a enum or boolean, it will show suggestions, otherwise, it will accept Strings.- Parameters:
shell
- TheShell
to open the dialog onstructuralFeature
- TheEStructuralFeature
to select possible values for- Returns:
- The selected value as an
Object
-
-