List of usage examples for org.eclipse.jface.databinding.swt SWTObservables getRealm
@Deprecated public static Realm getRealm(final Display display)
From source file:com.rcpcompany.uibindings.internal.observables.ComboObservableList.java
License:Open Source License
/** * Constructs and returns a new obserable list for the specified combo. * /* w ww . ja v a 2 s. com*/ * @param combo the combo of the list */ public ComboObservableList(Combo combo) { super(SWTObservables.getRealm(combo.getDisplay())); this.combo = combo; init(); }
From source file:com.rcpcompany.uibindings.internal.observables.ListObservableList.java
License:Open Source License
/** * @param list */ public ListObservableList(List list) { super(SWTObservables.getRealm(list.getDisplay())); this.list = list; init(); }
From source file:com.rcpcompany.uibindings.internal.observables.RadioGroupObservableList.java
License:Open Source License
/** * Constructs and returns a new obserable list for the specified radio group. * /*from w w w .j a v a 2 s . c o m*/ * @param rg the radio group of the list */ public RadioGroupObservableList(RadioGroup rg) { super(SWTObservables.getRealm(rg.getDisplay())); myRadioGroup = rg; }
From source file:com.rcpcompany.uibindings.internal.observables.TextObservableValue.java
License:Open Source License
/** * Constructs and returns a new observable for the Text widget. * //from ww w .j a va 2 s. c om * @param text the Text widget */ public TextObservableValue(final Text text) { this(SWTObservables.getRealm(text.getDisplay()), text); }
From source file:com.rcpcompany.uibindings.internal.observables.TextObservableValue.java
License:Open Source License
/** * Constructs and returns a new observable for the Text widget. * /* ww w .j ava2 s . c om*/ * @param text the Text widget * @param updater an optional updater interface */ public TextObservableValue(final Text text, IWidgetUpdated updater) { this(SWTObservables.getRealm(text.getDisplay()), text); if (updater != null) { updater.addWidgetUpdatedListener(myControlListener); } }
From source file:com.rcpcompany.uibindings.internal.observables.TextObservableValue.java
License:Open Source License
/** * Constructs and returns a new observable for the StyledText widget. * //from ww w. j a va2 s . c om * @param text the StyledText widget */ public TextObservableValue(final StyledText text) { this(SWTObservables.getRealm(text.getDisplay()), text); }
From source file:com.rcpcompany.uibindings.internal.observables.TextObservableValue.java
License:Open Source License
/** * Constructs and returns a new observable for the Combo widget. * /*from www . ja v a2s . c o m*/ * @param combo the Combo widget */ public TextObservableValue(final Combo combo) { this(SWTObservables.getRealm(combo.getDisplay()), combo); }
From source file:com.rcpcompany.uibindings.internal.observables.TextObservableValue.java
License:Open Source License
/** * Constructs and returns a new observable for the CCombo widget. * //from w ww.j av a 2s . c o m * @param combo the CCombo widget */ public TextObservableValue(final CCombo combo) { this(SWTObservables.getRealm(combo.getDisplay()), combo); }
From source file:com.rcpcompany.uibindings.internal.utils.FormCreator.java
License:Open Source License
private static IObservableValue createIOV(Composite top, EObject obj) { Assert.isNotNull(obj);/*from ww w .j a v a2s. c o m*/ return new WritableValue(SWTObservables.getRealm(top.getDisplay()), obj, obj.eClass()); }
From source file:com.rcpcompany.uibindings.observables.StyledTextRangesObservableList.java
License:Open Source License
/** * Constructs and returns a new obserable list for the specified {@link StyledText}. * /* w w w . j a v a 2 s . co m*/ * @param styledText the StyledText of the list */ public StyledTextRangesObservableList(StyledText styledText) { super(SWTObservables.getRealm(styledText.getDisplay())); myText = styledText; myRanges = myText.getStyleRanges(); }