Class ValueSelectionHelper


  • public abstract class ValueSelectionHelper
    extends java.lang.Object
    Author:
    Eugen Neufeld
    • 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 given EStructuralFeature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueSelectionHelper

        public ValueSelectionHelper()
    • 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 given EStructuralFeature. If the feature is a enum or boolean, it will show suggestions, otherwise, it will accept Strings.
        Parameters:
        shell - The Shell to open the dialog on
        structuralFeature - The EStructuralFeature to select possible values for
        Returns:
        The selected value as an Object