Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<copyright> Copyright (c) 2009, 2010 Springsite BV (The Netherlands) 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 Contributors: Martin Taal - Initial API and implementation </copyright> $Id:,v 1.13 2011/08/25 12:32:37 mtaal Exp $
package org.eclipse.emf.texo.model;
import  org.eclipse.emf.ecore.EClass;
import  org.eclipse.emf.ecore.EObject;
import  org.eclipse.emf.ecore.EStructuralFeature;
Implementation of the ModelObject interface with as an underlying object an EObject.

Martin Taal
See also:
public class ModelEObject implements ModelObject<EObject>, TexoComponent {
  private EObject target;
    return ModelResolver.getInstance().getModelPackage(.eClass().getEPackage().getNsURI());
  public void setTarget(EObject target) {
    this. = target;
  public EObject getTarget() {
    return ;
  public Class<?> getTargetClass() {
    return EObject.class;
  public EClass eClass() {
    return .eClass();
  public Object eGet(EStructuralFeature eStructuralFeature) {
    return .eGet(eStructuralFeature);
  public void eSet(EStructuralFeature eStructuralFeatureObject value) {
  public boolean eAddTo(EStructuralFeature eStructuralFeatureObject value) {
    return ((Collection<Object>) eGet(eStructuralFeature)).add(value);
  public boolean eRemoveFrom(EStructuralFeature eStructuralFeatureObject value) {
    return ((Collection<Object>) eGet(eStructuralFeature)).remove(value);
New to GrepCode? Check out our FAQ X