Force sub-diagram save when is opened [message #183588] |
Fri, 18 April 2008 09:33  |
Eclipse User |
|
|
|
Hi,
I have partitioned my diagram.
When a sub-diagram is opened, I programatically add an element as below :
=== xxxDiagramEditor class ===
@override
initializeGraphicalViewerContents() {
Command create = new XXXCreateCommand();
getCommandStack().execute(create);
}
When my sub-diagram is opened, it is dirty. I would-like to force its
save. How can I do that? And where ?
My goal is to avoid the "File changed" poop-up when I clicked on the
main diagram after the creation of my sub-diagram.
Thanks for your help.
Regards,
Philippe
|
|
|
Re: Force sub-diagram save when is opened [message #183730 is a reply to message #183588] |
Mon, 21 April 2008 09:45  |
Eclipse User |
|
|
|
Any ideas ?
Philippe BLANC a écrit :
> Hi,
> I have partitioned my diagram.
> When a sub-diagram is opened, I programatically add an element as below :
> === xxxDiagramEditor class ===
>
> @override
> initializeGraphicalViewerContents() {
>
> Command create = new XXXCreateCommand();
> getCommandStack().execute(create);
> }
>
> When my sub-diagram is opened, it is dirty. I would-like to force its
> save. How can I do that? And where ?
>
> My goal is to avoid the "File changed" poop-up when I clicked on the
> main diagram after the creation of my sub-diagram.
>
> Thanks for your help.
>
> Regards,
>
> Philippe
|
|
|
Powered by
FUDForum. Page generated in 0.03922 seconds