Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to initialize a diagram from a model file
How to initialize a diagram from a model file [message #203786] Thu, 28 August 2008 22:30 Go to next message
Eclipse UserFriend
Originally posted by: sunlonghai.gmail.com

Hello,I only have a model file like test.finitestatemachine,so how to
initialize a default diagrame file like test.finitestatemachine_diagrame
from that file,thanks
Re: How to initialize a diagram from a model file [message #203805 is a reply to message #203786] Fri, 29 August 2008 03:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi, simply run your tool, then navigate on the menu bar

File > Initialize finitestatemachine_diagram diagram file

This will open a dialogue window in which you select your file
(test.finitestatemachine), then it will convert and open this file as a
diagram file, save this and there ya go ;)

Hope this helps,
Gary
Re: How to initialize a diagram from a model file [message #204696 is a reply to message #203805] Tue, 09 September 2008 02:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunlonghai.gmail.com

Gary wrote:
> Hi, simply run your tool, then navigate on the menu bar
> File > Initialize finitestatemachine_diagram diagram file
>
> This will open a dialogue window in which you select your file
> (test.finitestatemachine), then it will convert and open this file as a
> diagram file, save this and there ya go ;)
>
> Hope this helps,
> Gary
>
It works,thank you very much
Re: How to initialize a diagram from a model file [message #204700 is a reply to message #203805] Tue, 09 September 2008 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

thanks for this help. I also needed this. But where can I change the
label? At the moment it shows me initialize test_diagram diagram file. Do
I have to change this in the gmfgen file?

Thanks for your help?

Regards

Andreas
Re: How to initialize a diagram from a model file [message #204703 is a reply to message #204700] Tue, 09 September 2008 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi, you could try editing the label in th *.diagram plugin.xml
to do this navigate

*.diagram > plugin.xml > Extentions > org.eclipse.ui.actionSets >
Initialize *_diagram diagram file

then simply change the value of the Label

...Hope this helps!
Re: How to initialize a diagram from a model file [message #204707 is a reply to message #204703] Tue, 09 September 2008 05:51 Go to previous message
Eclipse UserFriend
Thanks for your help. but i found it under org.eclipse.ui.popupMenus ->
...diagram.InitDiagram (..)

But thanks for the hint with the plugin-xml

Regards

Andreas
Previous Topic:Compartment vs EditPart
Next Topic:GMF Structure - deriving / transforming models
Goto Forum:
  


Current Time: Sun Jun 08 14:54:20 EDT 2025

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

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

Back to the top