Package org.eclipse.core.databinding.observable.map

Examples of org.eclipse.core.databinding.observable.map.IObservableMap


    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


   * @return a Map with the current contents of the source's map property
   * @since 1.3
   * @noreference This method is not intended to be referenced by clients.
   */
  protected Map doGetMap(Object source) {
    IObservableMap observable = observe(source);
    try {
      return new IdentityMap(observable);
    } finally {
      observable.dispose();
    }
  }
View Full Code Here

   *            a diff describing the change
   * @since 1.3
   * @noreference This method is not intended to be referenced by clients.
   */
  protected void doUpdateMap(Object source, MapDiff diff) {
    IObservableMap observable = observe(source);
    try {
      diff.applyTo(observable);
    } finally {
      observable.dispose();
    }
  }
View Full Code Here

    PropertyObservableUtil.cascadeDispose(detailList, masterList);
    return detailList;
  }

  public IObservableMap observeDetail(IObservableSet master) {
    IObservableMap masterMap;

    ObservableTracker.setIgnore(true);
    try {
      masterMap = masterProperty.observeDetail(master);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterMap);
    PropertyObservableUtil.cascadeDispose(detailMap, masterMap);
    return detailMap;
  }
View Full Code Here

    PropertyObservableUtil.cascadeDispose(detailMap, masterMap);
    return detailMap;
  }

  public IObservableMap observeDetail(IObservableMap master) {
    IObservableMap masterMap;

    ObservableTracker.setIgnore(true);
    try {
      masterMap = masterProperty.observeDetail(master);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterMap);
    PropertyObservableUtil.cascadeDispose(detailMap, masterMap);
    return detailMap;
  }
View Full Code Here

      masterSet = masterProperty.observe(realm, source);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterSet);
    PropertyObservableUtil.cascadeDispose(detailMap, masterSet);
    return detailMap;
  }
View Full Code Here

      masterSet = masterProperty.observeDetail(master);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterSet);
    PropertyObservableUtil.cascadeDispose(detailMap, masterSet);
    return detailMap;
  }
View Full Code Here

      masterValue = masterProperty.observe(realm, source);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterValue);
    PropertyObservableUtil.cascadeDispose(detailMap, masterValue);
    return detailMap;
  }
View Full Code Here

      masterValue = masterProperty.observeDetail(master);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterValue);
    PropertyObservableUtil.cascadeDispose(detailMap, masterValue);
    return detailMap;
  }
View Full Code Here

      detailProperty.setValue(masterValue, diff.getNewValue(key));
    }
  }

  public IObservableMap observe(Realm realm, Object source) {
    IObservableMap masterMap;

    ObservableTracker.setIgnore(true);
    try {
      masterMap = masterProperty.observe(realm, source);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableMap detailMap = detailProperty.observeDetail(masterMap);
    PropertyObservableUtil.cascadeDispose(detailMap, masterMap);
    return detailMap;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.databinding.observable.map.IObservableMap

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.