Package org.eclipse.core.databinding.observable.value

Examples of org.eclipse.core.databinding.observable.value.IObservableValue


  }
 
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue btnPrintAccessedParametersObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPrintAccessedParameters);
    IObservableValue parametersPrintAccessedParamsObserveValue = BeansObservables.observeValue(parameters, "printAccessedParams");
    bindingContext.bindValue(btnPrintAccessedParametersObserveSelectionObserveWidget, parametersPrintAccessedParamsObserveValue, null, null);
    //
    IObservableValue btnPrintUsedParametersObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPrintUsedParameters);
    IObservableValue parametersPrintUsedParamsObserveValue = BeansObservables.observeValue(parameters, "printUsedParams");
    bindingContext.bindValue(btnPrintUsedParametersObserveSelectionObserveWidget, parametersPrintUsedParamsObserveValue, null, null);
    //
    IObservableValue btnPrintUnaccessedParametersObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPrintUnaccessedParameters);
    IObservableValue parametersPrintUnaccessedParamsObserveValue = BeansObservables.observeValue(parameters, "printUnaccessedParams");
    bindingContext.bindValue(btnPrintUnaccessedParametersObserveSelectionObserveWidget, parametersPrintUnaccessedParamsObserveValue, null, null);
    //
    IObservableValue btnPrintUnusedParametersObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPrintUnusedParameters);
    IObservableValue parametersPrintUnusedParamsObserveValue = BeansObservables.observeValue(parameters, "printUnusedParams");
    bindingContext.bindValue(btnPrintUnusedParametersObserveSelectionObserveWidget, parametersPrintUnusedParamsObserveValue, null, null);
    //
    IObservableValue btnPrintAllParametersObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPrintAllParameters);
    IObservableValue parametersPrintAllParamsObserveValue = BeansObservables.observeValue(parameters, "printAllParams");
    bindingContext.bindValue(btnPrintAllParametersObserveSelectionObserveWidget, parametersPrintAllParamsObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here


  }
 
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue spNumJobsObserveSelectionObserveWidget = SWTObservables.observeSelection(spNumJobs);
    IObservableValue parametersNumJobsObserveValue = BeansObservables.observeValue(parameters, "numJobs");
    bindingContext.bindValue(spNumJobsObserveSelectionObserveWidget, parametersNumJobsObserveValue, null, null);
    //
    IObservableValue spNumEvalThreadsObserveSelectionObserveWidget = SWTObservables.observeSelection(spNumEvalThreads);
    IObservableValue parametersNumEvaluationThreadsObserveValue = BeansObservables.observeValue(parameters, "numEvaluationThreads");
    bindingContext.bindValue(spNumEvalThreadsObserveSelectionObserveWidget, parametersNumEvaluationThreadsObserveValue, null, null);
    //
    IObservableValue spNumBreedThreadsObserveSelectionObserveWidget = SWTObservables.observeSelection(spNumBreedThreads);
    IObservableValue parametersNumBreedingThreadsObserveValue = BeansObservables.observeValue(parameters, "numBreedingThreads");
    bindingContext.bindValue(spNumBreedThreadsObserveSelectionObserveWidget, parametersNumBreedingThreadsObserveValue, null, null);
    //
    IObservableValue txtStateClassnameObserveTextObserveWidget = SWTObservables.observeText(txtStateClassname, SWT.Modify);
    IObservableValue parametersStateClassnameObserveValue = BeansObservables.observeValue(parameters, "stateClassname");
    bindingContext.bindValue(txtStateClassnameObserveTextObserveWidget, parametersStateClassnameObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

  }
 
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue btnNostoreObserveSelectionObserveWidget = SWTObservables.observeSelection(btnNostore);
    IObservableValue parametersStoreMessagesObserveValue = BeansObservables.observeValue(parameters, "storeMessages");
    bindingContext.bindValue(btnNostoreObserveSelectionObserveWidget, parametersStoreMessagesObserveValue, null, null);
    //
    IObservableValue btnFlushObserveSelectionObserveWidget = SWTObservables.observeSelection(btnFlush);
    IObservableValue parametersFlushMessagesObserveValue = BeansObservables.observeValue(parameters, "flushMessages");
    bindingContext.bindValue(btnFlushObserveSelectionObserveWidget, parametersFlushMessagesObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

   * {@link #doCreateElementObservable(Object, ViewerCell)}, and then
   * {@link #createBinding(IObservableValue, IObservableValue)}.
   */
  final protected void initializeCellEditorValue(CellEditor cellEditor,
      ViewerCell cell) {
    IObservableValue target = doCreateCellEditorObservable(cellEditor);
    Assert.isNotNull(target,
        "doCreateCellEditorObservable(...) did not return an observable"); //$NON-NLS-1$

    IObservableValue model = doCreateElementObservable(cell.getElement(),
        cell);
    Assert.isNotNull(model,
        "doCreateElementObservable(...) did not return an observable"); //$NON-NLS-1$

    dirty = false;
View Full Code Here

    }
    return super.observe(source);
  }

  public IObservableValue observe(Realm realm, Object source) {
    IObservableValue observable = super.observe(realm, source);
    if (source instanceof Viewer)
      observable = new ViewerObservableValueDecorator(observable,
          (Viewer) source);
    return observable;
  }
View Full Code Here

   * @return the current value of the source's value property
   * @noreference This method is not intended to be referenced by clients.
   * @since 1.3
   */
  protected Object doGetValue(Object source) {
    IObservableValue observable = observe(source);
    try {
      return observable.getValue();
    } finally {
      observable.dispose();
    }
  }
View Full Code Here

   *            the new value
   * @since 1.3
   * @noreference This method is not intended to be referenced by clients.
   */
  protected void doSetValue(Object source, Object value) {
    IObservableValue observable = observe(source);
    try {
      observable.setValue(value);
    } finally {
      observable.dispose();
    }
  }
View Full Code Here

    Object masterValue = masterProperty.getValue(source);
    detailProperty.updateSet(masterValue, diff);
  }

  public IObservableSet observe(Realm realm, Object source) {
    IObservableValue masterValue;

    ObservableTracker.setIgnore(true);
    try {
      masterValue = masterProperty.observe(realm, source);
    } finally {
View Full Code Here

    PropertyObservableUtil.cascadeDispose(detailSet, masterValue);
    return detailSet;
  }

  public IObservableSet observeDetail(IObservableValue master) {
    IObservableValue masterValue;

    ObservableTracker.setIgnore(true);
    try {
      masterValue = masterProperty.observeDetail(master);
    } finally {
View Full Code Here

    Object masterValue = masterProperty.getValue(source);
    detailProperty.setValue(masterValue, value);
  }

  public IObservableValue observe(Realm realm, Object source) {
    IObservableValue masterValue;

    ObservableTracker.setIgnore(true);
    try {
      masterValue = masterProperty.observe(realm, source);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableValue detailValue = detailProperty
        .observeDetail(masterValue);
    PropertyObservableUtil.cascadeDispose(detailValue, masterValue);
    return detailValue;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.databinding.observable.value.IObservableValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.