Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Mysterious exceptions with my Eclipse-based Henshin-Application

Am 18.12.2012 um 09:03 schrieb Christian Krause:

> Hi Jens,
> 
> I think I might have an idea what the problem is.

Your guess seems to be right :)

I solved the problem as you suggested via iterating over the graph and just adding the necessary elements to the new resource.

for (EObject o : model.getModelGraph().getRoots()){
 if (o instanceof Model && ((Model) o).getName().equals(modelName))
    {resource2.getContents().add(o);}
 if (UMLsec.contains(o.eClass().getName()))
   {resource2.getContents().add(o);}
}

Thanks a lot!

Jens


Back to the top