[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Update existing diagrams after model change
|
Hello Holger,
I think you could find the view element from the notational model using the
EcoreUtil.CrossReferencer class (have a look at org.eclipse.gmf.internal.
codegen.util.EmfUtils) and change the notational view model element
according to your new figure layout.
Regards
Enrico
Holger Kremss wrote:
> Yeah, this would work, but our editor has only one file for model AND
> diagram. So I can't 'delete' the diagram easily, I would have to modify
> each file and I wonder, if there isn't a better solution while
> initializing the diagram. The other drawback is even worse, because our
> diagrams may be quite large (multiple pages printout) and I'm afraid
> re-arranging every diagram manually is not acceptable for the customer.
>
>
> Robert Wloch schrieb:
>> you could delete the diagram file (make a backup first, of course, or
>> simply rename it). Then, right-clicking the EMF model belonging to the
>> diagram shows an "initialize FOO diagram" entry in the context menu.
>> Usually this would work. There's just one drawback: you'll loose the
>> layout and eventually you'll have to arrange your figures again.