Package org.eclipse.jface.databinding.viewers

Examples of org.eclipse.jface.databinding.viewers.ObservableListContentProvider


      @Override
      public void removeListener(ILabelProviderListener listener) {
      }
    });

    tableViewer.setContentProvider(new ObservableListContentProvider());
    tableViewer.setInput(writableList);

    DataBindingContext ctx = new DataBindingContext();

    meterUnitColumn.setEditingSupport(new ObservableValueEditingSupport(
View Full Code Here


    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "parsingType", "defaultValue"});
    tableViewer.setLabelProvider(new ObservableMapLabelProvider(observeMaps));
    //
    IObservableList eventParametersObserveList = BeansObservables.observeList(Realm.getDefault(), event, "parameters");
    tableViewer.setInput(eventParametersObserveList);
    //
View Full Code Here

    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "defaultValue"});
    tableViewer.setLabelProvider(new ObservableMapLabelProvider(observeMaps));
    //
    IObservableList eventParametersObserveList = BeansObservables.observeList(Realm.getDefault(), event, "parameters");
    tableViewer.setInput(eventParametersObserveList);
    //
View Full Code Here

    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "defaultValue"});
    tableViewer.setLabelProvider(new ObservableMapLabelProvider(observeMaps));
    //
    IObservableList eventParametersObserveList = BeansObservables.observeList(Realm.getDefault(), event, "parameters");
    tableViewer.setInput(eventParametersObserveList);
    //
View Full Code Here

    UpdateValueStrategy strategy_3 = new UpdateValueStrategy();
    strategy_3.setAfterConvertValidator(new ToolNameAllowBlankValidator(exceptionEventText));
    bindingContext.bindValue(exceptionEventTextObserveTextObserveWidget, methodExceptionEventObserveValue, strategy_3, null);
    //
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "copy", "parsingType", "defaultValue"});
    tableViewer.setLabelProvider(new ObservableMapLabelProvider(observeMaps));
    //
    IObservableList methodEditorgetMethodParametersObserveList = BeansObservables.observeList(Realm.getDefault(), method, "parameters");
    tableViewer.setInput(methodEditorgetMethodParametersObserveList);
    //
View Full Code Here

  }

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();

    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    listViewerMEISources.setContentProvider(listContentProvider);
    //
    IObservableMap observeMap = PojoObservables.observeMap(listContentProvider.getKnownElements(), SourceBindingWrapper.class, "id"); //$NON-NLS-1$
    listViewerMEISources.setLabelProvider(new ObservableMapLabelProvider(observeMap));
    //
    writableList = new WritableList(this.sourceList, SourceBindingWrapper.class);
    listViewerMEISources.setInput(writableList);
    //
    ObservableListContentProvider listContentProvider_1 = new ObservableListContentProvider();
    listViewerReadingSources.setContentProvider(listContentProvider_1);
    //
    IObservableMap observeMap_1 = PojoObservables.observeMap(listContentProvider_1.getKnownElements(), SourceBindingWrapper.class, "id"); //$NON-NLS-1$
    listViewerReadingSources.setLabelProvider(new ObservableMapLabelProvider(observeMap_1));
    //
    writableList_1 = new WritableList(readingForm.getSourceBindingWrappers(), SourceBindingWrapper.class);
    listViewerReadingSources.setInput(writableList_1);
View Full Code Here

  }

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    //
    seedsTableViewer.setContentProvider(listContentProvider);
    //
    WritableList seeds = parameters.getRandomSeeds();
    seedsTableViewer.setInput(seeds);
View Full Code Here

  }
 
  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    parentsTableViewer.setContentProvider(listContentProvider);
    //
    WritableList writableList = parameters.getParents();
    parentsTableViewer.setInput(writableList);
    writableList.addChangeListener(new IChangeListener() {     
View Full Code Here

      }
      else {
        IContentProvider contentProvider = viewer.getContentProvider();
        if (value instanceof List<?> || value.getClass().isArray()) {
          if (contentProvider == null) {
            contentProvider = new ObservableListContentProvider();
            viewer.setContentProvider(contentProvider);
          }
          if (propertyNames != null && propertyNames.length > 0 && hasDefaultLabelProvider(viewer)
              && contentProvider instanceof ObservableListContentProvider) {
            ObservableListContentProvider listContentProvider = (ObservableListContentProvider) contentProvider;
            viewer.setLabelProvider(new ObservableMapLabelProvider(
                viewer, listContentProvider.getKnownElements(),
                propertyNames));
          }
        } else if (value instanceof Set<?>) {
          if (contentProvider == null) {
            contentProvider = new ObservableSetContentProvider();
View Full Code Here

    viewer.setInput(input);
  }

  @Override
  protected IStructuredContentProvider createContentProvider() {
    return new ObservableListContentProvider();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.databinding.viewers.ObservableListContentProvider

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.