Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Force sub-diagram save when is opened
Force sub-diagram save when is opened [message #183588] Fri, 18 April 2008 13:33 Go to next message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
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 13:45 Go to previous message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
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
Previous Topic:Unable to load class ***.MindmapCreationWizard
Next Topic:Refresh when constraint value has changed
Goto Forum:
  


Current Time: Thu Apr 25 22:17:26 GMT 2024

Powered by FUDForum. Page generated in 0.03421 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top