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

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


      m_bindingContext = initDataBindings();
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue virtualAttributePublicObserveValue = BeansObservables.observeValue(virtualAttribute, "public");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, virtualAttributePublicObserveValue, null, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue virtualAttributeTypeObserveValue = BeansObservables.observeValue(virtualAttribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, virtualAttributeTypeObserveValue, null, null);
    //
    IObservableValue getExpressionTextObserveTextObserveWidget = SWTObservables.observeText(getExpressionText, SWT.Modify);
    IObservableValue virtualAttributeGetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "getExpression");
    bindingContext.bindValue(getExpressionTextObserveTextObserveWidget, virtualAttributeGetExpressionObserveValue, null, null);
    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(text, SWT.Modify);
    IObservableValue virtualAttributeSetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "setExpression");
    bindingContext.bindValue(textObserveTextObserveWidget, virtualAttributeSetExpressionObserveValue, null, null);
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue virtualAttributeNameObserveValue = BeansObservables.observeValue(virtualAttribute, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, virtualAttributeNameObserveValue, strategy, null);
    //
    return bindingContext;
View Full Code Here


    }
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, eventNameObserveValue, null, null);
    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
View Full Code Here

    }
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, eventNameObserveValue, null, null);
    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
View Full Code Here

    }
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue classNameTextObserveTextObserveWidget = SWTObservables.observeText(classNameText, SWT.Modify);
    IObservableValue cdfNameObserveValue = BeansObservables.observeValue(cdf, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(classNameText));
    bindingContext.bindValue(classNameTextObserveTextObserveWidget, cdfNameObserveValue, strategy, null);
    //
    IObservableValue superClassTextObserveTextObserveWidget = SWTObservables.observeText(superClassText, SWT.FocusOut);
    IObservableValue cdfSuperClassObserveValue = BeansObservables.observeValue(cdf, "superClass");
    bindingContext.bindValue(superClassTextObserveTextObserveWidget, cdfSuperClassObserveValue, null, null);
    //
    IObservableValue superClassTextObserveEditableObserveWidget = SWTObservables.observeEditable(superClassText);
    IObservableValue cdfReadWriteObserveValue = BeansObservables.observeValue(cdf, "readWrite");
    bindingContext.bindValue(superClassTextObserveEditableObserveWidget, cdfReadWriteObserveValue, null, null);
    //
    IObservableValue classNameTextObserveEditableObserveWidget = SWTObservables.observeEditable(classNameText);
    bindingContext.bindValue(classNameTextObserveEditableObserveWidget, cdfReadWriteObserveValue, null, null);
    //
    IObservableValue addButtonObserveEnabledObserveWidget = SWTObservables.observeEnabled(addButton);
    bindingContext.bindValue(addButtonObserveEnabledObserveWidget, cdfReadWriteObserveValue, null, null);
    //
    IObservableValue removeButtonObserveEnabledObserveWidget = SWTObservables.observeEnabled(removeButton);
    bindingContext.bindValue(removeButtonObserveEnabledObserveWidget, cdfReadWriteObserveValue, null, null);
    //
    IObservableValue planNameTextObserveTextObserveWidget = SWTObservables.observeText(planNameText, SWT.FocusOut);
    IObservableValue cdfPlanNameObserveValue = BeansObservables.observeValue(cdf, "planName");
    bindingContext.bindValue(planNameTextObserveTextObserveWidget, cdfPlanNameObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

      return ResourceManager.getPluginImage("Tool", "icons/package.gif");
    }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue modelNameObserveValue = BeansObservables.observeValue(model, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, modelNameObserveValue, null, null);
    //
    IObservableValue libraryNameTextObserveTextObserveWidget = SWTObservables.observeText(libraryNameText, SWT.Modify);
    IObservableValue modelLibraryNameObserveValue = BeansObservables.observeValue(model, "libraryName");
    bindingContext.bindValue(libraryNameTextObserveTextObserveWidget, modelLibraryNameObserveValue, null, null);
    //
    IObservableValue txtStartclassObserveTextObserveWidget = SWTObservables.observeText(txtStartclass, SWT.Modify);
    IObservableValue modelStartClassObserveValue = BeansObservables.observeValue(model, "startClass");
    bindingContext.bindValue(txtStartclassObserveTextObserveWidget, modelStartClassObserveValue, null, null);
    //
    IObservableValue txtStartmethodObserveTextObserveWidget = SWTObservables.observeText(txtStartmethod, SWT.Modify);
    IObservableValue modelStartMethodObserveValue = BeansObservables.observeValue(model, "startMethod");
    bindingContext.bindValue(txtStartmethodObserveTextObserveWidget, modelStartMethodObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue modelRestrictedObserveValue = BeansObservables.observeValue(model, "restricted");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, modelRestrictedObserveValue, null, null);
    //
    IObservableValue btnMultithreadedObserveSelectionObserveWidget = SWTObservables.observeSelection(btnMultithreaded);
    IObservableValue modelMultiThreadedObserveValue = BeansObservables.observeValue(model, "multiThreaded");
    bindingContext.bindValue(btnMultithreadedObserveSelectionObserveWidget, modelMultiThreadedObserveValue, null, null);
    //
    IObservableValue btnInternalObserveSelectionObserveWidget = SWTObservables.observeSelection(btnInternal);
    IObservableValue modelInternalObserveValue = BeansObservables.observeValue(model, "internal");
    bindingContext.bindValue(btnInternalObserveSelectionObserveWidget, modelInternalObserveValue, null, null);
    //
    IObservableValue comboObserveSelectionObserveWidget = SWTObservables.observeSelection(combo);
    IObservableValue modelProjectTypeObserveValue = BeansObservables.observeValue(model, "projectType");
    bindingContext.bindValue(comboObserveSelectionObserveWidget, modelProjectTypeObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

  }

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue methodNameObserveValue = BeansObservables.observeValue(method, "name");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(this.nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, methodNameObserveValue, strategy, null);
    //
    IObservableValue returnTypeTextObserveTextObserveWidget = SWTObservables.observeText(returnTypeText, SWT.Modify);
    IObservableValue methodReturnTypeObserveValue = BeansObservables.observeValue(method, "returnType");
    bindingContext.bindValue(returnTypeTextObserveTextObserveWidget, methodReturnTypeObserveValue, null, null);
    //
    IObservableValue publicCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(publicCheckButton);
    IObservableValue methodPublicObserveValue = BeansObservables.observeValue(method, "public");
    bindingContext.bindValue(publicCheckButtonObserveSelectionObserveWidget, methodPublicObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue methodCopyReturnObserveValue = BeansObservables.observeValue(method, "copyReturn");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, methodCopyReturnObserveValue, null, null);
    //
    IObservableValue returnEventTextObserveTextObserveWidget = SWTObservables.observeText(returnEventText, SWT.Modify);
    IObservableValue methodReturnEventObserveValue = BeansObservables.observeValue(method, "returnEvent");
    UpdateValueStrategy strategy_2 = new UpdateValueStrategy();
    strategy_2.setAfterConvertValidator(new ToolNameAllowBlankValidator(returnEventText));
    bindingContext.bindValue(returnEventTextObserveTextObserveWidget, methodReturnEventObserveValue, strategy_2, null);
    //
    IObservableValue exceptionEventTextObserveTextObserveWidget = SWTObservables.observeText(exceptionEventText, SWT.Modify);
    IObservableValue methodExceptionEventObserveValue = BeansObservables.observeValue(method, "exceptionEvent");
    UpdateValueStrategy strategy_3 = new UpdateValueStrategy();
    strategy_3.setAfterConvertValidator(new ToolNameAllowBlankValidator(exceptionEventText));
    bindingContext.bindValue(exceptionEventTextObserveTextObserveWidget, methodExceptionEventObserveValue, strategy_3, null);
    //
    //
View Full Code Here

    }
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue attributeNameObserveValue = BeansObservables.observeValue(attribute, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, attributeNameObserveValue, null, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue attributeTypeObserveValue = BeansObservables.observeValue(attribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, attributeTypeObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue attributePublicObserveValue = BeansObservables.observeValue(attribute, "public");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, attributePublicObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

    return result;
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue modelNameObserveValue = BeansObservables.observeValue(model, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, modelNameObserveValue, null, null);
    //
    IObservableValue libraryNameTextObserveTextObserveWidget = SWTObservables.observeText(libraryNameText, SWT.Modify);
    IObservableValue modelLibraryNameObserveValue = BeansObservables.observeValue(model, "libraryName");
    bindingContext.bindValue(libraryNameTextObserveTextObserveWidget, modelLibraryNameObserveValue, null, null);
    //
    IObservableValue txtStartclassObserveTextObserveWidget = SWTObservables.observeText(txtStartclass, SWT.FocusOut);
    IObservableValue modelStartClassObserveValue = BeansObservables.observeValue(model, "startClass");
    bindingContext.bindValue(txtStartclassObserveTextObserveWidget, modelStartClassObserveValue, null, null);
    //
    IObservableValue txtStartmethodObserveTextObserveWidget = SWTObservables.observeText(txtStartmethod, SWT.FocusOut);
    IObservableValue modelStartMethodObserveValue = BeansObservables.observeValue(model, "startMethod");
    bindingContext.bindValue(txtStartmethodObserveTextObserveWidget, modelStartMethodObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue modelRestrictedObserveValue = BeansObservables.observeValue(model, "restricted");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, modelRestrictedObserveValue, null, null);
    //
    IObservableValue btnMultithreadedObserveSelectionObserveWidget = SWTObservables.observeSelection(btnMultithreaded);
    IObservableValue modelMultiThreadedObserveValue = BeansObservables.observeValue(model, "multiThreaded");
    bindingContext.bindValue(btnMultithreadedObserveSelectionObserveWidget, modelMultiThreadedObserveValue, null, null);
    //
    IObservableValue btnInternalObserveSelectionObserveWidget = SWTObservables.observeSelection(btnInternal);
    IObservableValue modelInternalObserveValue = BeansObservables.observeValue(model, "internal");
    bindingContext.bindValue(btnInternalObserveSelectionObserveWidget, modelInternalObserveValue, null, null);
    //
    IObservableValue comboObserveSelectionObserveWidget = SWTObservables.observeSelection(combo);
    IObservableValue modelProjectTypeObserveValue = BeansObservables.observeValue(model, "projectType");
    bindingContext.bindValue(comboObserveSelectionObserveWidget, modelProjectTypeObserveValue, null, null);
    //
    IObservableValue uuidTextObserveTextObserveWidget = SWTObservables.observeText(uuidText, SWT.Modify);
    IObservableValue modelUUIDObserveValue = BeansObservables.observeValue(model, "UUID");
    bindingContext.bindValue(uuidTextObserveTextObserveWidget, modelUUIDObserveValue, null, null);
    //
    IObservableValue compatabilitySpinnerObserveSelectionObserveWidget = SWTObservables.observeSelection(compatabilitySpinner);
    IObservableValue modelCompatibilityLevelObserveValue = BeansObservables.observeValue(model, "compatibilityLevel");
    bindingContext.bindValue(compatabilitySpinnerObserveSelectionObserveWidget, modelCompatibilityLevelObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

    m_bindingContext = initDataBindings();
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue constantNameObserveValue = BeansObservables.observeValue(constant, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(textObserveTextObserveWidget, constantNameObserveValue, strategy, null);
    //
    IObservableValue text_1ObserveTextObserveWidget = SWTObservables.observeText(valueText, SWT.Modify);
    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(text_1ObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
    IObservableValue buttonObserveVisibleObserveWidget = SWTObservables.observeVisible(button);
    IObservableValue constantClassConstantObserveValue = BeansObservables.observeValue(constant, "classConstant");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget, constantClassConstantObserveValue, null, null);
    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue constantPublicObserveValue = BeansObservables.observeValue(constant, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, constantPublicObserveValue, null, null);
    //
    IObservableValue buttonObserveVisibleObserveWidget_1 = SWTObservables.observeVisible(button);
    IObservableValue constantReadWriteObserveValue = BeansObservables.observeValue(constant, "readWrite");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget_1, constantReadWriteObserveValue, null, null);
    //
    IObservableValue typeComboObserveSelectionObserveWidget = SWTObservables.observeSelection(typeCombo);
    IObservableValue constantTypeObserveValue = BeansObservables.observeValue(constant, "type");
    bindingContext.bindValue(typeComboObserveSelectionObserveWidget, constantTypeObserveValue, null, null);
    //
    return bindingContext;
  }
View Full Code Here

    return dbCoordinates;
  }
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue portTextObserveTextObserveWidget = SWTObservables.observeText(portText, SWT.Modify);
    IObservableValue dbCoordinatesPortObserveValue = PojoObservables.observeValue(dbCoordinates, "port");
    bindingContext.bindValue(portTextObserveTextObserveWidget, dbCoordinatesPortObserveValue, null, null);
    //
    IObservableValue dbNameTextObserveTextObserveWidget = SWTObservables.observeText(dbNameText, SWT.Modify);
    IObservableValue dbCoordinatesNameObserveValue = PojoObservables.observeValue(dbCoordinates, "name");
    bindingContext.bindValue(dbNameTextObserveTextObserveWidget, dbCoordinatesNameObserveValue, null, null);
    //
    IObservableValue hostNameTextObserveTextObserveWidget = SWTObservables.observeText(hostNameText, SWT.Modify);
    IObservableValue dbCoordinatesHostNameObserveValue = PojoObservables.observeValue(dbCoordinates, "hostName");
    bindingContext.bindValue(hostNameTextObserveTextObserveWidget, dbCoordinatesHostNameObserveValue, null, null);
    //
    IObservableValue refreshIntervalTextObserveTextObserveWidget = SWTObservables.observeText(refreshIntervalText, SWT.Modify);
    IObservableValue dbCoordinatesRefreshIntervalObserveValue = PojoObservables.observeValue(dbCoordinates, "refreshInterval");
    bindingContext.bindValue(refreshIntervalTextObserveTextObserveWidget, dbCoordinatesRefreshIntervalObserveValue, null, null);
    //
    IObservableValue btnRefreshObserveSelectionObserveWidget = SWTObservables.observeSelection(btnRefresh);
    IObservableValue dbCoordinatesRefreshObserveValue = PojoObservables.observeValue(dbCoordinates, "refresh");
    bindingContext.bindValue(btnRefreshObserveSelectionObserveWidget, dbCoordinatesRefreshObserveValue, null, null);
    //
    return bindingContext;
  }
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.