|
|
|
|
|
|
Re: How to save both model and diagram in the same file from "File - Save as" menu [message #552662 is a reply to message #482613] |
Fri, 13 August 2010 05:39 |
Eclipse User |
|
|
|
Originally posted by: leomaggie365.163.com
On 2009-8-27 17:43, Alex Shatalin wrote:
> Hello Jerome,
>
> You need to modify ???DocumentProvider.doSaveDocument() [if (info ==
> null) branch].
>
> -----------------
> Alex Shatalin
>
>
Hi Jerome and Alex,
Just redirct your own domain model's root model to any Resource's
contents, then save that resource.
If a diagram refers to your domain root model myModelRoot, resource is
the target file you need to save you model(may be as the same as your
diagram file).
As your discussed, in DocumentProvider.doSaveDocument(), get myModelRoot
from diagram, and resource.getContents().add(myModelRoot),
resource.save(null).
That all, try it.
|
|
|
Powered by
FUDForum. Page generated in 0.04186 seconds