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;

  
Create a new observable for the set of features

Parameters:
domain the editing domain
objects the objects to observe
eStructuralFeature the feature
  public EditingDomainEObjectObservableMap(EditingDomain domainIObservableSet objectsEStructuralFeature eStructuralFeature)
  {
    super(objectseStructuralFeature);
    this. = domain;
  }
  protected Object doPut(Object keyObject value)
  {
    EObject eObject = (EObject)key;
    Object result = eObject.eGet();
    Command command = SetCommand.create(eObjectvalue);
    .getCommandStack().execute(command);
    eObject.eSet(value);
    return result;
  }
New to GrepCode? Check out our FAQ X