Class DataBinding

java.lang.Object
com.amalgamasimulation.desktop.binding.DataBinding

public class DataBinding extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindIdValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, Supplier<List<T>> listElements, org.eclipse.emf.ecore.EStructuralFeature idFeature)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindIdValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.core.databinding.observable.value.IObservableValue<? extends org.eclipse.emf.ecore.EObject> containerElements, org.eclipse.emf.ecore.EStructuralFeature listFeature, org.eclipse.emf.ecore.EStructuralFeature idFeature)
     
    <T> void
    bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList)
     
    <T> void
    bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList, Supplier<Boolean> selectable)
     
    <T> void
    bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList, Supplier<Boolean> selectable, org.eclipse.core.databinding.observable.value.IObservableValue<Boolean> redrawRestrictionState)
     
    <T> void
    bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList, org.eclipse.core.databinding.observable.value.IObservableValue<Boolean> redrawRestrictionState)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindTransientValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, org.eclipse.emf.databinding.FeaturePath... featurePaths)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindTransientValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, org.eclipse.emf.ecore.EStructuralFeature... eStructuralFeatures)
     
    <T> void
    bindValue(org.eclipse.jface.databinding.swt.ISWTObservableValue<Boolean> property, org.eclipse.core.databinding.observable.value.IObservableValue<T> observableValueStatus, boolean reversed)
     
    <O> void
    bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<O> currentSelection, Consumer<Object> selectedObjectHandler, Consumer<Object> setter)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Consumer<Object> selectedObjectHandler)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Consumer<Object> selectedObjectHandler, Consumer<Object> setter)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.swt.widgets.Button checkBox, org.eclipse.core.databinding.observable.value.IObservableValue<Object> currentSelection, Function<Object,Boolean> valueExtractor, Consumer<Boolean> setter)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.swt.widgets.Button checkBox, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.swt.widgets.Button checkBox, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValueChangeDescriptor valueChangeDescriptor)
     
    <T> void
    bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, Function<Object,String> nameExtractor)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, Supplier<Boolean> canBeNull)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, Supplier<Boolean> canBeNull, Consumer<Object> selectedObjectHandler)
     
    <T extends org.eclipse.emf.ecore.EObject, V>
    void
    bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, Supplier<Boolean> canBeNull, Consumer<Object> selectedObjectHandler, Consumer<V> setter)
     
    <T extends org.eclipse.emf.ecore.EObject>
    void
    bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Function<Object,String> nameExtractor)
     
    static org.eclipse.jface.fieldassist.ControlDecoration
    createControlDecoration(org.eclipse.swt.widgets.Control control, String message)
     
     
    static boolean
    isUniqID(List<?> collection, org.eclipse.emf.ecore.EObject currentObject, String identifier, org.eclipse.emf.ecore.EStructuralFeature idExtractor)
     
    static <V> boolean
    isUniqID(org.eclipse.core.databinding.observable.value.IObservableValue<? extends org.eclipse.emf.ecore.EObject> container, org.eclipse.emf.ecore.EStructuralFeature listObjectsExtractor, org.eclipse.emf.ecore.EStructuralFeature idExtractor, org.eclipse.emf.ecore.EObject currentObject, String identifier)
     
    static void
    setSelection(org.eclipse.jface.viewers.TableViewer tableViewer, int index)
     
    static void
    setSelection(org.eclipse.jface.viewers.TableViewer tableViewer, Object obj)
     

    Methods inherited from class java.lang.Object

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

    • DataBinding

      public DataBinding()
  • Method Details

    • getInstance

      public static DataBinding getInstance()
    • bindValue

      public <T> void bindValue(org.eclipse.jface.databinding.swt.ISWTObservableValue<Boolean> property, org.eclipse.core.databinding.observable.value.IObservableValue<T> observableValueStatus, boolean reversed)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, Supplier<Boolean> canBeNull)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, Supplier<Boolean> canBeNull, Consumer<Object> selectedObjectHandler)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, Supplier<Boolean> canBeNull, Consumer<Object> selectedObjectHandler, Consumer<V> setter)
    • isUniqID

      public static <V> boolean isUniqID(org.eclipse.core.databinding.observable.value.IObservableValue<? extends org.eclipse.emf.ecore.EObject> container, org.eclipse.emf.ecore.EStructuralFeature listObjectsExtractor, org.eclipse.emf.ecore.EStructuralFeature idExtractor, org.eclipse.emf.ecore.EObject currentObject, String identifier)
    • isUniqID

      public static boolean isUniqID(List<?> collection, org.eclipse.emf.ecore.EObject currentObject, String identifier, org.eclipse.emf.ecore.EStructuralFeature idExtractor)
    • bindIdValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindIdValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, Supplier<List<T>> listElements, org.eclipse.emf.ecore.EStructuralFeature idFeature)
    • bindIdValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindIdValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.core.databinding.observable.value.IObservableValue<? extends org.eclipse.emf.ecore.EObject> containerElements, org.eclipse.emf.ecore.EStructuralFeature listFeature, org.eclipse.emf.ecore.EStructuralFeature idFeature)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Function<Object,String> nameExtractor)
    • bindValue

      public <T> void bindValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, Function<Object,String> nameExtractor)
    • bindSelection

      public <T> void bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList)
    • bindSelection

      public <T> void bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList, Supplier<Boolean> selectable)
    • bindSelection

      public <T> void bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList, org.eclipse.core.databinding.observable.value.IObservableValue<Boolean> redrawRestrictionState)
    • bindSelection

      public <T> void bindSelection(org.eclipse.jface.viewers.TableViewer tableViewer, org.eclipse.core.databinding.observable.list.IObservableList<T> observableList, Supplier<Boolean> selectable, org.eclipse.core.databinding.observable.value.IObservableValue<Boolean> redrawRestrictionState)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Consumer<Object> selectedObjectHandler)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Consumer<Object> selectedObjectHandler, Consumer<Object> setter)
    • bindValue

      public <O> void bindValue(org.eclipse.jface.viewers.ComboViewer comboViewer, org.eclipse.core.databinding.observable.value.IObservableValue<O> currentSelection, Consumer<Object> selectedObjectHandler, Consumer<Object> setter)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.swt.widgets.Button checkBox, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.swt.widgets.Button checkBox, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValueChangeDescriptor valueChangeDescriptor)
    • bindValue

      public <T extends org.eclipse.emf.ecore.EObject> void bindValue(org.eclipse.swt.widgets.Button checkBox, org.eclipse.core.databinding.observable.value.IObservableValue<Object> currentSelection, Function<Object,Boolean> valueExtractor, Consumer<Boolean> setter)
    • bindTransientValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindTransientValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, org.eclipse.emf.databinding.FeaturePath... featurePaths)
    • bindTransientValue

      public <T extends org.eclipse.emf.ecore.EObject, V> void bindTransientValue(org.eclipse.swt.widgets.Text text, org.eclipse.core.databinding.observable.value.IObservableValue<T> currentSelection, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ValidationStrategy<V,String> strategy, org.eclipse.emf.ecore.EStructuralFeature... eStructuralFeatures)
    • setSelection

      public static void setSelection(org.eclipse.jface.viewers.TableViewer tableViewer, int index)
    • setSelection

      public static void setSelection(org.eclipse.jface.viewers.TableViewer tableViewer, Object obj)
    • createControlDecoration

      public static org.eclipse.jface.fieldassist.ControlDecoration createControlDecoration(org.eclipse.swt.widgets.Control control, String message)