Example usage for org.eclipse.jface.databinding.swt WidgetProperties selection

List of usage examples for org.eclipse.jface.databinding.swt WidgetProperties selection

Introduction

In this page you can find the example usage for org.eclipse.jface.databinding.swt WidgetProperties selection.

Prototype

public static IWidgetValueProperty selection() 

Source Link

Document

Returns a value property for observing the selection state of a Button , CCombo , Combo , DateTime , List , MenuItem (since 1.5), Scale , Slider (since 1.5) or Spinner .

Usage

From source file:org.jboss.tools.openshift.internal.ui.wizard.connection.OAuthDetailView.java

License:Open Source License

@Override
public void onVisible(IObservableValue detailsViewModel, DataBindingContext dbc) {
    dbc.addValidationStatusProvider(connectionValidator);
    bindWidgetsToInternalModel(dbc);//w  w w . ja v  a 2s .  co  m
    this.rememberTokenBinding = ValueBindingBuilder
            .bind(WidgetProperties.selection().observe(rememberTokenCheckbox)).to(rememberTokenObservable)
            .in(dbc);
}

From source file:org.jboss.tools.openshift.internal.ui.wizard.deployimage.DeployImagePage.java

License:Open Source License

@SuppressWarnings("unchecked")
private void createPushToRegistrySettings(final Composite parent, final DataBindingContext dbc) {
    // checkbox//from w  w  w  . java  2  s  .c  om
    final Button pushImageToRegistryButton = new Button(parent, SWT.CHECK);
    pushImageToRegistryButton.setText("Push Image to Registry");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).span(NUM_COLUMS, 1)
            .applyTo(pushImageToRegistryButton);
    final IObservableValue<Boolean> pushImageToRegistryButtonObservable = BeanProperties
            .value(IDeployImagePageModel.PROPERTY_PUSH_IMAGE_TO_REGISTRY).observe(model);
    ValueBindingBuilder.bind(WidgetProperties.selection().observe(pushImageToRegistryButton))
            .to(pushImageToRegistryButtonObservable).in(dbc);

    // registry location
    final Label registryLocationLabel = new Label(parent, SWT.NONE);
    registryLocationLabel.setText("Image Registry URL:");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).indent(30, 0)
            .applyTo(registryLocationLabel);
    final Text registryLocationText = new Text(parent, SWT.BORDER);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(NUM_COLUMS - 1, 1)
            .applyTo(registryLocationText);
    final IObservableValue<String> registryLocationObservable = BeanProperties
            .value(IDeployImagePageModel.PROPERTY_TARGET_REGISTRY_LOCATION).observe(model);
    ValueBindingBuilder.bind(WidgetProperties.text(SWT.Modify).observe(registryLocationText))
            .to(registryLocationObservable).in(dbc);
    ValueBindingBuilder.bind(WidgetProperties.enabled().observe(registryLocationText))
            .to(pushImageToRegistryButtonObservable).in(dbc);

    // username to authenticate on registry
    final Label registryUsernameLabel = new Label(parent, SWT.NONE);
    registryUsernameLabel.setText("Username:");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).indent(30, 0)
            .applyTo(registryUsernameLabel);
    final Text registryUsernameText = new Text(parent, SWT.BORDER);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(NUM_COLUMS - 1, 1)
            .applyTo(registryUsernameText);
    final IObservableValue<String> registryUsernameObservable = BeanProperties
            .value(IDeployImagePageModel.PROPERTY_TARGET_REGISTRY_USERNAME).observe(model);
    ValueBindingBuilder.bind(WidgetProperties.text(SWT.Modify).observe(registryUsernameText))
            .to(registryUsernameObservable).in(dbc);
    ValueBindingBuilder.bind(WidgetProperties.enabled().observe(registryUsernameText))
            .to(pushImageToRegistryButtonObservable).in(dbc);

    // password to authenticate on registry
    final Label registryPasswordLabel = new Label(parent, SWT.NONE);
    registryPasswordLabel.setText("Password:");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).indent(30, 0)
            .applyTo(registryPasswordLabel);
    final Text registryPasswordText = new Text(parent, SWT.BORDER + SWT.PASSWORD);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(NUM_COLUMS - 1, 1)
            .applyTo(registryPasswordText);
    final IObservableValue<String> registryPasswordObservable = BeanProperties
            .value(IDeployImagePageModel.PROPERTY_TARGET_REGISTRY_PASSWORD).observe(model);
    ValueBindingBuilder.bind(WidgetProperties.text(SWT.Modify).observe(registryPasswordText))
            .to(registryPasswordObservable).in(dbc);
    ValueBindingBuilder.bind(WidgetProperties.enabled().observe(registryPasswordText))
            .to(pushImageToRegistryButtonObservable).in(dbc);

    // validation
    final PushImageToRegistryStatusProvider validator = new PushImageToRegistryStatusProvider(
            pushImageToRegistryButtonObservable, registryLocationObservable, registryUsernameObservable,
            registryPasswordObservable);
    dbc.addValidationStatusProvider(validator);

}

From source file:org.jboss.tools.openshift.internal.ui.wizard.deployimage.DeploymentConfigPage.java

License:Open Source License

@SuppressWarnings("unchecked")
@Override/*from w  w  w. jav  a 2  s  .c o  m*/
protected void doCreateControls(final Composite parent, DataBindingContext dbc) {
    GridLayoutFactory.fillDefaults().margins(10, 10).applyTo(parent);

    //Env Variables Block
    createEnvVariableControl(parent, dbc, "Deployment environment variables (Runtime only):",
            EnvironmentVariablePage.TABLE_LABEL_TOOLTIP);

    Label separator1 = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.BEGINNING).grab(true, false).applyTo(separator1);

    createDataVolumeControl(parent, dbc);

    Label separator2 = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.BEGINNING).grab(true, false).applyTo(separator2);

    //Scaling
    Composite scalingContainer = new Composite(parent, SWT.NONE);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(scalingContainer);
    GridLayoutFactory.fillDefaults().numColumns(2).margins(6, 6).applyTo(scalingContainer);

    Label lblReplicas = new Label(scalingContainer, SWT.NONE);
    lblReplicas.setText("Replicas:");
    lblReplicas.setToolTipText(
            "Replicas are the number of copies of an image that will be scheduled to run on OpenShift");
    GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(lblReplicas);

    Spinner replicas = new Spinner(scalingContainer, SWT.BORDER);
    replicas.setMinimum(1);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(replicas);
    ValueBindingBuilder.bind(WidgetProperties.selection().observe(replicas))
            .to(BeanProperties.value(IDeploymentConfigPageModel.PROPERTY_REPLICAS).observe(model)).in(dbc);
    parent.addControlListener(new ControlListener() {

        @Override
        public void controlResized(ControlEvent e) {
            if (parent.isDisposed() || envTableContainer == null || envTableContainer.isDisposed()
                    || volTableContainer == null || volTableContainer.isDisposed()) {
                return;
            }

            int h = parent.getSize().y;
            if (h > 0) {
                int envtable = heightScale * 5 + 30; //Minimum height that can be assigned to envVars table.
                int voltable = heightScale * 4 + 24; //Minimum height that can be assigned to volumes table.
                int replicas = heightScale * 7; //Preferred height for bottom.
                int all = envtable + voltable + replicas;
                int minVolume = heightScale * 2;

                int hEnvVar = envtable;
                int hVolumes = voltable;
                if (h > all) {
                    //In this case the bottom gets its preferred size and the remainder is proportionally shared by tables.
                    hEnvVar = (h - replicas) * envtable / (envtable + voltable);
                    hVolumes = (h - replicas) * voltable / (envtable + voltable);
                } else if (h > envtable + replicas + minVolume) {
                    //Shrink volumes table, no use to shrink env-var table because of buttons.
                    hVolumes = h - envtable - replicas;
                } else {
                    //At a smaller available height, all components will be in lack of height evenly.
                    hVolumes = minVolume;
                }
                ((GridData) envTableContainer.getLayoutData()).heightHint = hEnvVar;
                ((GridData) volTableContainer.getLayoutData()).heightHint = hVolumes;
                parent.layout(true);
            }
        }

        @Override
        public void controlMoved(ControlEvent e) {
        }
    });
}

From source file:org.jboss.tools.openshift.internal.ui.wizard.deployimage.ServicePortDialog.java

License:Open Source License

@Override
protected void doCreateControls(final Composite parent, final DataBindingContext dbc) {
    GridLayoutFactory.fillDefaults().margins(1, 1).applyTo(parent);
    final Composite dialogArea = new Composite(parent, SWT.NONE);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(dialogArea);
    GridLayoutFactory.fillDefaults().numColumns(2).applyTo(dialogArea);

    //service port
    final Label servicePortLabel = new Label(dialogArea, SWT.NONE);
    servicePortLabel.setText("Service port:");
    GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(servicePortLabel);

    final Spinner servicePortSpinner = new Spinner(dialogArea, SWT.BORDER);
    servicePortSpinner.setMinimum(1);/*w w w.j  a va  2  s  .  c o m*/
    servicePortSpinner.setMaximum(65535);
    servicePortSpinner.setToolTipText("The port exposed by the service that will route to the pod.");

    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(servicePortSpinner);
    final Binding servicePortBinding = ValueBindingBuilder
            .bind(WidgetProperties.selection().observe(servicePortSpinner))
            .validatingAfterConvert(new ServicePortValidator(model.getPort(), this.ports))
            .to(BeanProperties.value(PROPERTY_SERVICE_PORT).observe(model)).in(dbc);
    ControlDecorationSupport.create(servicePortBinding, SWT.LEFT | SWT.TOP, null,
            new RequiredControlDecorationUpdater());

    // Pod port
    final Label podPortLabel = new Label(dialogArea, SWT.NONE);
    podPortLabel.setText("Pod port:");
    GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(podPortLabel);

    final Text podPortText = new Text(dialogArea, SWT.BORDER);
    podPortText.setToolTipText(
            "The port exposed by the pod which will accept traffic.\nIt must be an integer or the name of a port in the backend Pods.");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(podPortText);

    final Binding podPortBinding = ValueBindingBuilder
            .bind(WidgetProperties.text(SWT.Modify).observe(podPortText))
            .validatingAfterConvert(new PodPortValidator(this.model.getTargetPort(), this.ports))
            .to(BeanProperties.value(PROPERTY_POD_PORT).observe(model)).in(dbc);
    ControlDecorationSupport.create(podPortBinding, SWT.LEFT | SWT.TOP, null,
            new RequiredControlDecorationUpdater());
}

From source file:org.jboss.tools.openshift.internal.ui.wizard.deployimage.ServicesAndRoutingPage.java

License:Open Source License

@Override
protected void doCreateControls(Composite parent, DataBindingContext dbc) {
    GridLayoutFactory.fillDefaults().margins(10, 10).applyTo(parent);
    createExposedPortsControl(parent, dbc);

    //routing//w w  w  . j a v  a  2  s.c o m
    Composite routingContainer = new Composite(parent, SWT.NONE);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, false).applyTo(routingContainer);
    GridLayoutFactory.fillDefaults().margins(6, 6).numColumns(2).applyTo(routingContainer);

    Button btnAddRoute = new Button(routingContainer, SWT.CHECK);
    btnAddRoute.setText("Add Route");
    btnAddRoute.setToolTipText(
            "Adding a route to the service will make the image accessible\noutside of the OpenShift cluster on all the available service ports. \nYou can target a specific port by editing the route later.");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(false, false).applyTo(btnAddRoute);
    ValueBindingBuilder.bind(WidgetProperties.selection().observe(btnAddRoute))
            .to(BeanProperties.value(IServiceAndRoutingPageModel.PROPERTY_ADD_ROUTE).observe(model)).in(dbc);

}

From source file:org.jboss.tools.openshift.internal.ui.wizard.importapp.GitCloningWizardPage.java

License:Open Source License

private Composite createCloneGroup(Composite parent, DataBindingContext dbc) {
    Group cloneGroup = new Group(parent, SWT.NONE);
    cloneGroup.setText("Cloning settings");
    cloneGroup.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    GridLayoutFactory.fillDefaults().numColumns(3).equalWidth(false).margins(10, 10).applyTo(cloneGroup);

    Composite composite = new Composite(cloneGroup, SWT.NONE);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(composite);
    GridLayoutFactory.fillDefaults().numColumns(3).margins(15, 15).applyTo(composite);

    // Repo Path Management
    useDefaultRepoPathButton = new Button(composite, SWT.CHECK);
    useDefaultRepoPathButton.setText("Use default clone destination");
    useDefaultRepoPathButton.setToolTipText("Uncheck if you want to use a custom location to clone to");
    GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).span(3, 1).applyTo(useDefaultRepoPathButton);
    Label labelForRepoPath = new Label(composite, SWT.NONE);
    labelForRepoPath.setText("Git Clone Location:");
    GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).grab(false, false).indent(10, 0)
            .applyTo(labelForRepoPath);/* w  ww . j ava2s  . co  m*/
    final Text repoPathText = new Text(composite, SWT.BORDER);
    GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).align(SWT.FILL, SWT.CENTER).grab(true, false)
            .applyTo(repoPathText);
    final IObservableValue repoPathObservable = WidgetProperties.text(SWT.Modify).observe(repoPathText);
    final IObservableValue repoPathModelObservable = BeanProperties
            .value(IGitCloningPageModel.PROPERTY_REPOSITORY_PATH).observe(model);
    ValueBindingBuilder.bind(repoPathObservable).to(repoPathModelObservable).in(dbc);

    Button browseRepoPathButton = new Button(composite, SWT.PUSH);
    browseRepoPathButton.setText("Browse...");
    GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).hint(100, SWT.DEFAULT)
            .applyTo(browseRepoPathButton);
    browseRepoPathButton.addSelectionListener(onRepoPath());

    final IObservableValue isDefaultRepoObservable = WidgetProperties.selection()
            .observe(useDefaultRepoPathButton);
    final IObservableValue useDefaultRepoModelObservable = BeanProperties
            .value(IGitCloningPageModel.PROPERTY_USE_DEFAULT_REPOSITORY_PATH).observe(model);
    ValueBindingBuilder.bind(isDefaultRepoObservable).to(useDefaultRepoModelObservable).in(dbc);
    ValueBindingBuilder.bind(WidgetProperties.enabled().observe(repoPathText))
            .notUpdating(useDefaultRepoModelObservable).converting(new InvertingBooleanConverter()).in(dbc);
    ValueBindingBuilder.bind(WidgetProperties.enabled().observe(browseRepoPathButton))
            .notUpdating(useDefaultRepoModelObservable).converting(new InvertingBooleanConverter()).in(dbc);
    // move focus to the project location text control when not choosing the
    // 'Use default location' option.
    UIUtils.focusOnSelection(useDefaultRepoPathButton, repoPathText);

    // Skip clone
    skipCloneOnlyImportButton = new Button(composite, SWT.CHECK);
    skipCloneOnlyImportButton.setSelection(false);
    skipCloneOnlyImportButton.setText("Reuse existing repository");
    GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).span(3, 1).applyTo(skipCloneOnlyImportButton);
    final IObservableValue skipCloneObservable = WidgetProperties.selection()
            .observe(skipCloneOnlyImportButton);
    final IObservableValue skipCloneModelObservable = BeanProperties
            .value(IGitCloningPageModel.PROPERTY_SKIP_CLONE_ONLY_IMPORT).observe(model);
    skipCloneOnlyImportButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            model.setSkipClone(skipCloneOnlyImportButton.getSelection());
        }
    });

    IObservableValue projectNameObservable = BeanProperties.value(IGitCloningPageModel.PROPERTY_PROJECT_NAME)
            .observe(model);
    this.repoPathValidator = new RepoPathValidationStatusProvider(repoPathObservable, projectNameObservable,
            skipCloneObservable);
    dbc.addValidationStatusProvider(repoPathValidator);
    ControlDecorationSupport.create(repoPathValidator, SWT.LEFT | SWT.TOP);

    return cloneGroup;
}

From source file:org.jboss.tools.openshift.internal.ui.wizard.newapp.fromimage.BuildConfigPage.java

License:Open Source License

@SuppressWarnings("unchecked")
private void createTriggers(Composite parent, DataBindingContext dbc) {

    Label triggerLabel = new Label(parent, SWT.NONE);
    triggerLabel.setText("Build Triggers:");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(triggerLabel);

    //webhook//  w  w w  . j a  v  a  2 s  .  c o m
    Button webHookBtn = new Button(parent, SWT.CHECK);
    webHookBtn.setText("Configure a webhook build trigger");
    webHookBtn.setToolTipText(
            "The source repository must be configured to use the webhook to trigger a build when source is committed.");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(false, false).applyTo(webHookBtn);
    ValueBindingBuilder.bind(WidgetProperties.selection().observe(webHookBtn))
            .to(BeanProperties.value(IBuildConfigPageModel.PROPERTY_CONFIG_WEB_HOOK).observe(model)).in(dbc);

    //image change
    Button imageChangeBtn = new Button(parent, SWT.CHECK);
    imageChangeBtn.setText("Automatically build a new image when the builder image changes");
    imageChangeBtn.setToolTipText(
            "Automatically building a new image when the builder image changes allows your code to always run on the latest updates.");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(false, false).applyTo(imageChangeBtn);
    ValueBindingBuilder.bind(WidgetProperties.selection().observe(imageChangeBtn))
            .to(BeanProperties.value(IBuildConfigPageModel.PROPERTY_IMAGE_CHANGE_TRIGGER).observe(model))
            .in(dbc);

    //build config change
    Button configChangeBtn = new Button(parent, SWT.CHECK);
    configChangeBtn.setText("Automatically build a new image when the build configuration changes");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(false, false).applyTo(configChangeBtn);
    ValueBindingBuilder.bind(WidgetProperties.selection().observe(configChangeBtn))
            .to(BeanProperties.value(IBuildConfigPageModel.PROPERTY_CONFIG_CHANGE_TRIGGER).observe(model))
            .in(dbc);

}

From source file:org.jboss.tools.windup.ui.internal.editor.launch.OptionsSections.java

License:Open Source License

@SuppressWarnings("unchecked")
@Override//from w w  w.ja v  a 2s.c om
protected void fillSection(Composite parent) {
    section.setText(windupOptions);
    section.setDescription(optionsDescription);

    Composite container = toolkit.createComposite(parent);
    GridLayoutFactory.fillDefaults().applyTo(container);
    GridDataFactory.fillDefaults().span(2, 1).applyTo(container);

    Button sourceButton = toolkit.createButton(container, sourceMode, SWT.CHECK);
    sourceButton.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
    bindingContext.bindValue(WidgetProperties.selection().observe(sourceButton), EMFProperties
            .value(WindupPackage.eINSTANCE.getConfigurationElement_SourceMode()).observe(configuration));

    container = toolkit.createComposite(parent);
    GridLayoutFactory.fillDefaults().numColumns(3).applyTo(container);
    GridDataFactory.fillDefaults().grab(true, false).span(2, 1).applyTo(container);
    createLabel(container, generatedReportLocation);

    Text outputLocationText = toolkit.createText(container, configuration.getGeneratedReportLocation());
    outputLocationText.setEditable(false);
    GridDataFactory.fillDefaults().grab(true, false).hint(400, SWT.DEFAULT).applyTo(outputLocationText);

    bindingContext.bindValue(WidgetProperties.text(SWT.Modify).observe(outputLocationText),
            EMFProperties.value(WindupPackage.eINSTANCE.getConfigurationElement_GeneratedReportLocation())
                    .observe(configuration));

    Button reportLocationButton = toolkit.createButton(container, browseLabel, SWT.PUSH);
    reportLocationButton.setImage(WindupUIPlugin.getDefault().getImageRegistry().get(IMG_SEARCH));
    reportLocationButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            DirectoryDialog dd = new DirectoryDialog(WindupUIPlugin.getActiveWorkbenchShell());
            dd.setText(generatedReportLocationSearch);
            String filename = dd.open();
            if (filename != null) {
                IPath path = new Path(filename);
                if (path != null) {
                    configuration.setGeneratedReportLocation(path.toString());
                }
            }
        }
    });
}

From source file:org.kalypso.model.wspm.tuhh.ui.actions.interpolation.InterpolationStationPage.java

License:Open Source License

private void bindOnlyChannel(final Button onlyChannelCheck) {
    final ISWTObservableValue checkValue = WidgetProperties.selection().observe(onlyChannelCheck);
    m_bindingContext.bindValue(checkValue, m_interpolationData.observeOnlyChannel());
}

From source file:org.multicore_association.shim.edit.gui.jface.preferences.AccessTypePreferencePage.java

License:MIT License

/**
 * Initializes the DataBindingContext.<br>
 * This method is generated by WindowsBuilder.
 * /* ww w. ja va  2s  . c  om*/
 * @return the initialized DataBindingContext
 */
protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue observeTextTextBaseNameObserveWidget = WidgetProperties.text(SWT.Modify)
            .observe(textBaseName);
    IObservableValue baseNameParameterObserveValue = PojoProperties.value("baseName").observe(parameter);
    bindingContext.bindValue(observeTextTextBaseNameObserveWidget, baseNameParameterObserveValue, null, null);
    //
    IObservableValue observeSelectionBtnCheckButton_RObserveWidget = WidgetProperties.selection()
            .observe(btnCheckButtonR);
    IObservableValue checkRParameterObserveValue = PojoProperties.value("checkR").observe(parameter);
    bindingContext.bindValue(observeSelectionBtnCheckButton_RObserveWidget, checkRParameterObserveValue, null,
            null);
    //
    IObservableValue observeSelectionBtnCheckButton_WObserveWidget = WidgetProperties.selection()
            .observe(btnCheckButtonW);
    IObservableValue checkWParameterObserveValue = PojoProperties.value("checkW").observe(parameter);
    bindingContext.bindValue(observeSelectionBtnCheckButton_WObserveWidget, checkWParameterObserveValue, null,
            null);
    //
    IObservableValue observeSelectionBtnCheckButton_RWObserveWidget = WidgetProperties.selection()
            .observe(btnCheckButtonRW);
    IObservableValue checkRWParameterObserveValue = PojoProperties.value("checkRW").observe(parameter);
    bindingContext.bindValue(observeSelectionBtnCheckButton_RWObserveWidget, checkRWParameterObserveValue, null,
            null);
    //
    IObservableValue observeSelectionBtnCheckButton_RWXObserveWidget = WidgetProperties.selection()
            .observe(btnCheckButtonRWX);
    IObservableValue checkRWXParameterObserveValue = PojoProperties.value("checkRWX").observe(parameter);
    bindingContext.bindValue(observeSelectionBtnCheckButton_RWXObserveWidget, checkRWXParameterObserveValue,
            null, null);
    //
    IObservableValue observeSelectionBtnCheckButton_RXObserveWidget = WidgetProperties.selection()
            .observe(btnCheckButtonRX);
    IObservableValue checkRXParameterObserveValue = PojoProperties.value("checkRX").observe(parameter);
    bindingContext.bindValue(observeSelectionBtnCheckButton_RXObserveWidget, checkRXParameterObserveValue, null,
            null);
    //
    IObservableValue observeSelectionBtnCheckButton_XObserveWidget = WidgetProperties.selection()
            .observe(btnCheckButtonX);
    IObservableValue checkXParameterObserveValue = PojoProperties.value("checkX").observe(parameter);
    bindingContext.bindValue(observeSelectionBtnCheckButton_XObserveWidget, checkXParameterObserveValue, null,
            null);
    //
    IObservableValue observeTextTextAccessByteSizeObserveWidget = WidgetProperties.text(SWT.Modify)
            .observe(textAccessByteSize);
    IObservableValue accessByteSizeParameterObserveValue = PojoProperties.value("accessByteSize")
            .observe(parameter);
    bindingContext.bindValue(observeTextTextAccessByteSizeObserveWidget, accessByteSizeParameterObserveValue,
            null, null);
    //
    IObservableValue observeTextTextObserveWidget = WidgetProperties.text(SWT.Modify).observe(textNBurst);
    IObservableValue nBurstParameterObserveValue = PojoProperties.value("nBurst").observe(parameter);
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setConverter(new StringToIntegerConverter());
    UpdateValueStrategy strategy_1 = new UpdateValueStrategy();
    strategy_1.setConverter(new IntToStringConverter());
    bindingContext.bindValue(observeTextTextObserveWidget, nBurstParameterObserveValue, strategy, strategy_1);
    //
    return bindingContext;
}