Example usage for org.eclipse.jface.databinding.swt SWTObservables observeText

List of usage examples for org.eclipse.jface.databinding.swt SWTObservables observeText

Introduction

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

Prototype

@Deprecated
public static ISWTObservableValue observeText(Control control, int event) 

Source Link

Document

Returns an observable observing the text attribute of the provided control.

Usage

From source file:net.sf.rcer.conn.ui.preferences.ConnectionsPreferencePage.java

License:Open Source License

/**
 * Initializes the data binding for the user interface components.
 *//*  ww  w  .j a  v  a 2  s. c  o  m*/
private void bindControls() {

    UpdateValueStrategy targetToModel;

    context = new DataBindingContext();

    // observe changes in the selection of the connection list
    IObservableValue selection = ViewersObservables.observeSingleSelection(connectionViewer);

    // bind the description (String, may not be empty)
    context.bindValue(SWTObservables.observeText(descriptionText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "description", String.class), //$NON-NLS-1$
            new UpdateValueStrategy().setBeforeSetValidator(
                    new NotEmptyValidator(Messages.ConnectionsPreferencePage_DescriptionEmptyError)),
            new UpdateValueStrategy());

    // bind the connection type
    IObservableValue connectionTypeObservable = BeansObservables.observeDetailValue(selection, "connectionType", //$NON-NLS-1$
            ConnectionType.class);
    context.bindValue(SWTObservables.observeSelection(connectionTypeCombo), connectionTypeObservable,
            new UpdateValueStrategy().setConverter(new ConnectionTypeFromStringConverter()),
            new UpdateValueStrategy().setConverter(new ConnectionTypeToStringConverter()));

    // bind the system ID
    context.bindValue(SWTObservables.observeText(sidText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "systemID", String.class), //$NON-NLS-1$
            new UpdateValueStrategy().setBeforeSetValidator(
                    new StringLengthValidator(Messages.ConnectionsPreferencePage_SystemIDValidator, 3, 3)),
            new UpdateValueStrategy());

    // bind the router
    context.bindValue(SWTObservables.observeText(routerText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "router", String.class), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    // bind the application server
    context.bindValue(SWTObservables.observeText(applicationServerText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "applicationServer", String.class), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());
    new VisibilityUpdater(details, applicationServerText, applicationServerLabel, connectionTypeObservable,
            ConnectionType.DIRECT);
    // TODO #002 ensure that the app server is required for direct connections

    // bind the system number
    targetToModel = new UpdateValueStrategy();
    targetToModel.setConverter(StringToNumberConverter.toInteger(true));
    // TODO #002 ensure that the system number is required for direct connections
    //      targetToModel.setAfterGetValidator(new ConditionalNotEmptyValidator(
    //            connectionTypeObservable, ConnectionType.DIRECT, "System Number must be set for direct connections."));
    targetToModel.setBeforeSetValidator(
            new IntegerRangeValidator(Messages.ConnectionsPreferencePage_SystemNumberValidator, 0, 99));
    context.bindValue(SWTObservables.observeText(systemNumberText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "systemNumber", null), //$NON-NLS-1$
            targetToModel, new UpdateValueStrategy().setConverter(NumberToStringConverter.fromInteger(true)));
    new VisibilityUpdater(details, systemNumberText, systemNumberLabel, connectionTypeObservable,
            ConnectionType.DIRECT);

    // bind the message server 
    context.bindValue(SWTObservables.observeText(messageServerText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "messageServer", String.class), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());
    new VisibilityUpdater(details, messageServerText, messageServerLabel, connectionTypeObservable,
            ConnectionType.LOAD_BALANCED);
    // TODO #002 ensure that the message server is required for lb connections

    // bind the message server port
    context.bindValue(SWTObservables.observeText(messageServerPortText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "messageServerPort", null), //$NON-NLS-1$
            new UpdateValueStrategy().setConverter(StringToNumberConverter.toInteger(true)),
            new UpdateValueStrategy().setConverter(NumberToStringConverter.fromInteger(true)));
    new VisibilityUpdater(details, messageServerPortText, messageServerPortLabel, connectionTypeObservable,
            ConnectionType.LOAD_BALANCED);
    // TODO #002 ensure that the port is required for lb connections

    // bind the logon group 
    context.bindValue(SWTObservables.observeText(logonGroupText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "loadBalancingGroup", String.class), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());
    new VisibilityUpdater(details, logonGroupText, logonGroupLabel, connectionTypeObservable,
            ConnectionType.LOAD_BALANCED);
    // TODO #002 ensure that the logon group is required for lb connections

    // bind the default client 
    context.bindValue(SWTObservables.observeText(defaultClientText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "defaultClient", String.class), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    // bind the default user
    context.bindValue(SWTObservables.observeText(defaultUserText, SWT.Modify),
            BeansObservables.observeDetailValue(selection, "defaultUser", String.class), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    // bind the default locale 
    context.bindValue(SWTObservables.observeSelection(defaultLocaleCombo),
            BeansObservables.observeDetailValue(selection, "defaultLocale", Locale.class), //$NON-NLS-1$
            new UpdateValueStrategy().setConverter(new LocaleFromStringConverter()),
            new UpdateValueStrategy().setConverter(new LocaleToStringConverter(false)));

    // supply the error label with the aggregated status
    context.bindValue(SWTObservables.observeText(errorDisplayLabel),
            new AggregateValidationStatus(context.getBindings(), AggregateValidationStatus.MAX_SEVERITY), null,
            null);

    // provide the connection list with input data
    connectionViewer.setContentProvider(new ObservableListContentProvider());
    connectionViewer.setInput(connections);

    // select the first entry, if any exist
    if (connections.size() > 0) {
        connectionViewer.setSelection(new StructuredSelection(connections.get(0)));
    }
}

From source file:net.sf.rcer.jcoimport.ArchiveFilesPage.java

License:Open Source License

/**
 * Auxiliary method to setup a line of controls for a platform. 
 * @param parent/*from   w w w. j  av  a 2 s. com*/
 * @param property 
 * @param platform
 * @param filenameHint
 * @param filenameFilter
 * @return
 */
private Text addFileRow(Composite parent, String property, String platform, String filenameHint,
        final String filenameFilter) {

    Label rowLabel = new Label(parent, SWT.NONE);
    rowLabel.setText(MessageFormat.format("{0}:", platform)); //$NON-NLS-1$
    GridDataFactory.swtDefaults().applyTo(rowLabel);

    final Text filenameText = new Text(parent, SWT.BORDER | SWT.SINGLE);
    filenameText.addModifyListener(filenameModifyListener);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(filenameText);
    context.bindValue(SWTObservables.observeText(filenameText, SWT.Modify),
            BeansObservables.observeValue(generatorSettings, property), new UpdateValueStrategy(),
            new UpdateValueStrategy());

    Button browseButton = new Button(parent, SWT.PUSH);
    browseButton.setText(Messages.ArchiveFilesPage_BrowseButton);
    GridDataFactory.swtDefaults().applyTo(browseButton);
    browseButton.addSelectionListener(new SelectionAdapter() {
        /* (non-Javadoc)
         * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
         */
        @Override
        public void widgetSelected(SelectionEvent e) {
            FileDialog dialog = new FileDialog(getShell(), SWT.OPEN);
            dialog.setText(Messages.ArchiveFilesPage_OpenDialogTitle);
            dialog.setFilterExtensions(new String[] { filenameFilter, "*.*" });
            String result = dialog.open();
            if (result != null) {
                filenameText.setText(result);
            }
        }
    });

    @SuppressWarnings("unused")
    Label spacer = new Label(parent, SWT.NONE);

    Label hintLabel = new Label(parent, SWT.NONE);
    hintLabel.setText(MessageFormat.format(Messages.ArchiveFilesPage_FileNameHintLabel, filenameHint));
    GridDataFactory.swtDefaults().span(2, 1).applyTo(hintLabel);

    return filenameText;
}

From source file:net.sf.rcer.jcoimport.SummaryPage.java

License:Open Source License

public void createControl(Composite parent) {
    Composite top = new Composite(parent, SWT.NONE);
    GridLayoutFactory.swtDefaults().applyTo(top);

    Label info = new Label(top, SWT.NONE);
    info.setText(Messages.SummaryPage_InfoLabel);

    checkboxPlugin = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxPlugin),
            BeansObservables.observeValue(generatorSettings, "pluginProjectSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxDocPlugin = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxDocPlugin),
            BeansObservables.observeValue(generatorSettings, "docPluginProjectSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxIDocPlugin = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxIDocPlugin),
            BeansObservables.observeValue(generatorSettings, "IDocPluginProjectSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentWin32 = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentWin32),
            BeansObservables.observeValue(generatorSettings, "win32FragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentWin64IA = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentWin64IA),
            BeansObservables.observeValue(generatorSettings, "win64IAFragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentWin64x86 = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentWin64x86),
            BeansObservables.observeValue(generatorSettings, "win64x86FragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentLinux32 = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentLinux32),
            BeansObservables.observeValue(generatorSettings, "linux32FragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentLinux64IA = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentLinux64IA),
            BeansObservables.observeValue(generatorSettings, "linux64IAFragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentLinux64x86 = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentLinux64x86),
            BeansObservables.observeValue(generatorSettings, "linux64x86FragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentDarwin32 = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentDarwin32),
            BeansObservables.observeValue(generatorSettings, "darwin32FragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    checkboxFragmentDarwin64 = new Button(top, SWT.CHECK);
    context.bindValue(SWTObservables.observeSelection(checkboxFragmentDarwin64),
            BeansObservables.observeValue(generatorSettings, "darwin64FragmentSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    @SuppressWarnings("unused")
    Label spacer = new Label(top, SWT.NONE);

    Composite export = new Composite(top, SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(export);

    checkboxExportBundles = new Button(export, SWT.CHECK);
    GridDataFactory.swtDefaults().span(2, 1).applyTo(checkboxExportBundles);
    checkboxExportBundles.setText(Messages.SummaryPage_ExportToDropinsLabel);
    context.bindValue(SWTObservables.observeSelection(checkboxExportBundles),
            BeansObservables.observeValue(generatorSettings, "bundleExportSelected"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());

    Label exportLabel = new Label(export, SWT.NONE);
    exportLabel.setText(Messages.SummaryPage_TargetPathLabel);

    Text exportPathText = new Text(export, SWT.SINGLE | SWT.BORDER);
    GridDataFactory.swtDefaults().grab(true, false).align(SWT.FILL, SWT.CENTER).applyTo(exportPathText);
    context.bindValue(SWTObservables.observeText(exportPathText, SWT.Modify),
            BeansObservables.observeValue(generatorSettings, "exportPath"), //$NON-NLS-1$
            new UpdateValueStrategy(), new UpdateValueStrategy());
    // TODO validate the target path

    updateCheckboxes();/*from ww w  .  ja  v a  2  s. co  m*/
    setControl(top);
    Dialog.applyDialogFont(top);
}

From source file:net.sourceforge.appgen.editor.MappingDataEditor.java

License:Apache License

private void bindValues() {
    dataBindingContext = new DataBindingContext();

    UpdateValueStrategy fileUpdateValueStrategy = new UpdateValueStrategy();
    fileUpdateValueStrategy.setConverter(new StringToFileConverter());

    ConnectionInformation connectionInformation = mappingData.getConnectionInformation();
    GenerationInformation generationInformation = mappingData.getGenerationInformation();

    dataBindingContext.bindValue(SWTObservables.observeSelection(databaseNameCombo),
            BeansObservables.observeValue(connectionInformation, "name"), null, null);
    dataBindingContext.bindValue(SWTObservables.observeText(databaseSchemaText, SWT.Modify),
            BeansObservables.observeValue(connectionInformation, "schema"), null, null);

    dataBindingContext.bindValue(SWTObservables.observeText(outputDirText, SWT.Modify),
            BeansObservables.observeValue(generationInformation, "outputDir"), fileUpdateValueStrategy, null);
    dataBindingContext.bindValue(SWTObservables.observeText(packageNameText, SWT.Modify),
            BeansObservables.observeValue(generationInformation, "packageName"), null, null);
}

From source file:net.wedjaa.jasper.elasticsearch.adapter.ESAdapterComposite.java

License:Apache License

@Override
protected void bindWidgets(DataAdapter dataAdapter) {
    bindingContext.bindValue(SWTObservables.observeText(esHostField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchHost"));
    bindingContext.bindValue(SWTObservables.observeText(esPortField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchPort"));
    bindingContext.bindValue(SWTObservables.observeText(esClusterField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchCluster"));
    bindingContext.bindValue(SWTObservables.observeText(esIndexesField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchIndexes"));
    bindingContext.bindValue(SWTObservables.observeText(esTypesField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchTypes"));
    bindingContext.bindValue(SWTObservables.observeText(esUsernameField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchUsername"));
    bindingContext.bindValue(SWTObservables.observeText(esPasswordField, SWT.Modify),
            PojoObservables.observeValue(dataAdapter, "elasticSearchPassword"));
    bindingContext.bindValue(SWTObservables.observeSingleSelectionIndex(esSearchModeField),
            PojoObservables.observeValue(dataAdapter, "elasticSearchMode"));
}

From source file:net.wedjaa.jasper.elasticsearch.server.DatasourceESPageContent.java

License:Apache License

@Override
protected void rebind() {

    ResourceProperty resprop = ResourceDescriptorUtil.getProperty(
            MRDatasourceCustom.PROP_DATASOURCE_CUSTOM_PROPERTY_MAP, res.getValue().getProperties());

    ResourceProperty rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_INDEX_PARAM,
            resprop.getProperties());//from   w w  w . ja v a 2s  .  c o m
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esIndexesField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_TYPE_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esTypesField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_HOST_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esHostField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_PORT_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esPortField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_CLUSTER_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esClusterField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_USER_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esUsernameField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_PASSWORD_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeText(esPasswordField, SWT.Modify),
            PojoObservables.observeValue(rsp, "value"));

    rsp = ResourceDescriptorUtil.getProperty(ESAdapterService.ES_MODE_PARAM, resprop.getProperties());
    rsp.setValue(Misc.nvl(rsp.getValue()));
    bindingContext.bindValue(SWTObservables.observeSingleSelectionIndex(esSearchModeField),
            PojoObservables.observeValue(rsp, "value"));

}

From source file:oida.model.integration.ui.dialogs.CreateNewReferenceIndividualDialog.java

License:Open Source License

protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    ///*from w w  w  .  ja  v a2 s .  c o  m*/
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    IObservableMap observeMap = PojoObservables.observeMap(listContentProvider.getKnownElements(),
            OntClass.class, "localName");
    listViewer.setLabelProvider(new ObservableMapLabelProvider(observeMap));
    listViewer.setContentProvider(listContentProvider);
    //
    IObservableList referenceOntologfyContentProviderReferenceOntClassesObserveList = BeansObservables
            .observeList(Realm.getDefault(), referenceOntologfyContentProvider, "referenceOntClasses");
    listViewer.setInput(referenceOntologfyContentProviderReferenceOntClassesObserveList);

    OntClass currentOntClass = referenceOntologfyContentProvider.getCurrentOntClass();
    if (currentOntClass != null) {
        listViewer.setSelection(new StructuredSelection(currentOntClass), true);
    }

    //
    IObservableValue textNewIndividualNameObserveTextObserveWidget = SWTObservables
            .observeText(textNewIndividualName, SWT.Modify);
    IObservableValue referenceOntologfyContentProviderNewIndividualNameObserveValue = BeansObservables
            .observeValue(referenceOntologfyContentProvider, "newIndividualName");
    bindingContext.bindValue(textNewIndividualNameObserveTextObserveWidget,
            referenceOntologfyContentProviderNewIndividualNameObserveValue, null, null);
    //
    return bindingContext;
}

From source file:oida.model.integration.ui.dialogs.CreateNewReferenceOntClassDialog.java

License:Open Source License

protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    ///*from w w w. j a  va2s .c  om*/
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    IObservableMap observeMap = PojoObservables.observeMap(listContentProvider.getKnownElements(),
            OntClass.class, "localName");
    listViewer.setLabelProvider(new ObservableMapLabelProvider(observeMap));
    listViewer.setContentProvider(listContentProvider);
    //
    IObservableList referenceOntologfyContentProviderReferenceOntClassesObserveList = BeansObservables
            .observeList(Realm.getDefault(), referenceOntologfyContentProvider, "referenceOntClasses");
    listViewer.setInput(referenceOntologfyContentProviderReferenceOntClassesObserveList);
    OntClass currentOntClass = referenceOntologfyContentProvider.getCurrentOntClass();
    if (currentOntClass != null) {
        listViewer.setSelection(new StructuredSelection(currentOntClass), true);
    }
    //
    IObservableValue textNewOntClassNameObserveTextObserveWidget = SWTObservables
            .observeText(textNewOntClassName, SWT.Modify);
    IObservableValue referenceOntologfyContentProviderNewClassNameObserveValue = BeansObservables
            .observeValue(referenceOntologfyContentProvider, "newClassName");
    bindingContext.bindValue(textNewOntClassNameObserveTextObserveWidget,
            referenceOntologfyContentProviderNewClassNameObserveValue, null, null);
    //
    return bindingContext;
}

From source file:oida.model.integration.ui.dialogs.ImportPreviousMappingsDialog.java

License:Open Source License

protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    ///*from  w  w  w . java  2  s.  c o m*/
    IObservableValue textFileNameObserveTextObserveWidget = SWTObservables.observeText(textFileName,
            SWT.Modify);
    IObservableValue previousMappingImportModelFileNameObserveValue = BeansObservables
            .observeValue(previousMappingImportModel, "previousOntologyFileName");
    bindingContext.bindValue(textFileNameObserveTextObserveWidget,
            previousMappingImportModelFileNameObserveValue, null, null);
    //
    return bindingContext;
}

From source file:oida.model.integration.ui.editors.ExtendingMatchEditor.java

License:Open Source License

protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    ////from w  w  w.  j  ava  2 s . co  m
    IObservableValue textFileNameObserveTextObserveWidget = SWTObservables.observeText(textFileName,
            SWT.Modify);
    IObservableValue recommendationProviderSourceOntologyFileNameObserveValue = BeansObservables
            .observeValue(matchingModel, "sourceOntologyFileName");
    bindingContext.bindValue(textFileNameObserveTextObserveWidget,
            recommendationProviderSourceOntologyFileNameObserveValue, null, null);
    //
    IObservableValue btnDeclineObserveTextObserveWidget = SWTObservables.observeText(btnConfirm);
    IObservableValue recommendationProviderButtonStringObserveValue = BeansObservables
            .observeValue(matchingModel, "buttonString");
    bindingContext.bindValue(btnDeclineObserveTextObserveWidget, recommendationProviderButtonStringObserveValue,
            null, null);
    //
    IObservableValue txtSourceResourceObserveTextObserveWidget = SWTObservables.observeText(txtSourceResource);
    IObservableValue recommendationProviderMappingStatusObserveValue = BeansObservables
            .observeValue(matchingModel, "mappingStatus");
    bindingContext.bindValue(txtSourceResourceObserveTextObserveWidget,
            recommendationProviderMappingStatusObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    listViewerModelReference.setContentProvider(listContentProvider);
    //
    IObservableMap observeMap = PojoObservables.observeMap(listContentProvider.getKnownElements(),
            Individual.class, "localName");
    listViewerModelReference.setLabelProvider(new ObservableMapLabelProvider(observeMap));
    //
    IObservableList recommendationProviderCurrentIndividualCandidatesObserveList = BeansObservables
            .observeList(Realm.getDefault(), matchingModel, "currentIndividualCandidates");
    listViewerModelReference.setInput(recommendationProviderCurrentIndividualCandidatesObserveList);
    //
    ObservableListContentProvider listContentProvider_1 = new ObservableListContentProvider();
    listViewerMetamodelReference.setContentProvider(listContentProvider_1);
    //
    IObservableMap observeMap_1 = PojoObservables.observeMap(listContentProvider_1.getKnownElements(),
            OntResource.class, "localName");
    listViewerMetamodelReference.setLabelProvider(new ObservableMapLabelProvider(observeMap_1));
    //
    IObservableList recommendationProviderMetaCandiatesOntResourcesObserveList = BeansObservables
            .observeList(Realm.getDefault(), matchingModel, "metaCandiatesOntResources");
    listViewerMetamodelReference.setInput(recommendationProviderMetaCandiatesOntResourcesObserveList);
    //
    return bindingContext;
}