Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2007 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM - Initial API and implementation
package org.eclipse.emf.databinding.edit;

PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.

{
  
The editing domain
  protected EditingDomain domain;

  
Observe a list feature using a default realm

Parameters:
domain the editing domain
eObject the object instance
eStructuralFeature the feature
  public EditingDomainEObjectObservableValue(EditingDomain domainEObject eObjectEStructuralFeature eStructuralFeature)
  {
    this(Realm.getDefault(), domaineObjecteStructuralFeature);
  }

  
Observe a list feature using a custom realm

Parameters:
realm the realm
domain the editing domain
eObject the object instance
eStructuralFeature the feature
  public EditingDomainEObjectObservableValue(Realm realmEditingDomain domainEObject eObjectEStructuralFeature eStructuralFeature)
  {
    super(realmeObjecteStructuralFeature);
    this. = domain;
  }
  public synchronized void dispose()
  {
     = null;
    super.dispose();
  }
  protected void doSetValue(Object value)
  {
    Command command = SetCommand.create(value);
    .getCommandStack().execute(command);
  }
New to GrepCode? Check out our FAQ X