Package org.eclipse.core.databinding

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()


    label.setImage(help);

    // add WizardPage validators
    DataBindingContext dbc = new DataBindingContext();
    WizardPageSupport.create(this, dbc);
    dbc.bindValue(SWTObservables.observeText(nameText, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new FilterNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(queryText, SWT.Modify),
        queryValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new JSONValidator()), null);
View Full Code Here


    DataBindingContext dbc = new DataBindingContext();
    WizardPageSupport.create(this, dbc);
    dbc.bindValue(SWTObservables.observeText(nameText, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new FilterNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(queryText, SWT.Modify),
        queryValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new JSONValidator()), null);

    setControl(container);
    // disable save until everything matches
View Full Code Here

    // add WizardPage validators
    DataBindingContext dbc = new DataBindingContext();
    WizardPageSupport.create(this, dbc);

    dbc.bindValue(SWTObservables.observeText(connName, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new NameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(host, SWT.Modify), hostValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new HostNameValidator()), null);
View Full Code Here

    WizardPageSupport.create(this, dbc);

    dbc.bindValue(SWTObservables.observeText(connName, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new NameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(host, SWT.Modify), hostValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new HostNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(port, SWT.Modify), portValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new PortValidator()), null);
View Full Code Here

        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new NameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(host, SWT.Modify), hostValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new HostNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(port, SWT.Modify), portValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new PortValidator()), null);

    initialize();
    setControl(container);
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue spinnerObserveSelectionObserveWidget = SWTObservables.observeSelection(spinner);
    IObservableValue wrapperMeasuresNumberOfNewMeasuresObserveValue = PojoObservables.observeValue(wrapper, "measuresNumberOfNewMeasures");
    bindingContext.bindValue(spinnerObserveSelectionObserveWidget, wrapperMeasuresNumberOfNewMeasuresObserveValue, null, null);
    //
    IObservableValue btnCreateNewSectionObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCreateNewSection);
    IObservableValue wrapperMeasuresCreateNewSectionObserveValue = PojoObservables.observeValue(wrapper, "measuresCreateNewSection");
    bindingContext.bindValue(btnCreateNewSectionObserveSelectionObserveWidget, wrapperMeasuresCreateNewSectionObserveValue, null, null);
    //
View Full Code Here

    IObservableValue wrapperMeasuresNumberOfNewMeasuresObserveValue = PojoObservables.observeValue(wrapper, "measuresNumberOfNewMeasures");
    bindingContext.bindValue(spinnerObserveSelectionObserveWidget, wrapperMeasuresNumberOfNewMeasuresObserveValue, null, null);
    //
    IObservableValue btnCreateNewSectionObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCreateNewSection);
    IObservableValue wrapperMeasuresCreateNewSectionObserveValue = PojoObservables.observeValue(wrapper, "measuresCreateNewSection");
    bindingContext.bindValue(btnCreateNewSectionObserveSelectionObserveWidget, wrapperMeasuresCreateNewSectionObserveValue, null, null);
    //
    IObservableValue btnCreateNewStaffsObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCreateNewStaffs);
    IObservableValue wrapperMeasuresMeasureContainsStaffsAndLayersObserveValue = PojoObservables.observeValue(wrapper, "measuresMeasureContainsStaffsAndLayers");
    bindingContext.bindValue(btnCreateNewStaffsObserveSelectionObserveWidget, wrapperMeasuresMeasureContainsStaffsAndLayersObserveValue, null, null);
    //
View Full Code Here

    IObservableValue wrapperMeasuresCreateNewSectionObserveValue = PojoObservables.observeValue(wrapper, "measuresCreateNewSection");
    bindingContext.bindValue(btnCreateNewSectionObserveSelectionObserveWidget, wrapperMeasuresCreateNewSectionObserveValue, null, null);
    //
    IObservableValue btnCreateNewStaffsObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCreateNewStaffs);
    IObservableValue wrapperMeasuresMeasureContainsStaffsAndLayersObserveValue = PojoObservables.observeValue(wrapper, "measuresMeasureContainsStaffsAndLayers");
    bindingContext.bindValue(btnCreateNewStaffsObserveSelectionObserveWidget, wrapperMeasuresMeasureContainsStaffsAndLayersObserveValue, null, null);
    //
    return bindingContext;
  }
}
View Full Code Here

    IObservableValue btnCreateANewObserveSelectionObserveWidget = SWTObservables
        .observeSelection(btnCreateANew);
    IObservableValue contentWrapperStaffDefsCreateNewStaffGroupObserveValue = PojoObservables
        .observeValue(contentWrapper, "staffDefsCreateNewStaffGroup");
    bindingContext.bindValue(btnCreateANewObserveSelectionObserveWidget,
        contentWrapperStaffDefsCreateNewStaffGroupObserveValue, null,
        null);

    IObservableValue btnInsertNewStaffObserveSelectionObserveWidget = SWTObservables
        .observeSelection(btnInsertNewStaff);
View Full Code Here

    IObservableValue btnInsertNewStaffObserveSelectionObserveWidget = SWTObservables
        .observeSelection(btnInsertNewStaff);
    IObservableValue contentWrapperStaffDefsFillMeasuresWithStaffsObserveValue = PojoObservables
        .observeValue(contentWrapper, "staffDefsFillMeasuresWithStaffs");
    bindingContext.bindValue(
        btnInsertNewStaffObserveSelectionObserveWidget,
        contentWrapperStaffDefsFillMeasuresWithStaffsObserveValue,
        null, null);
    //
    return bindingContext;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.