Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating "invisible" diagram parts
Creating "invisible" diagram parts [message #220755] Mon, 09 March 2009 09:14 Go to next message
Anna is currently offline AnnaFriend
Messages: 34
Registered: July 2009
Member
Hello,

I currently have a class model for my diagram editor that looks like this:
http://farm4.static.flickr.com/3341/3341064422_2f40c22e23_o. gif

Now, I would like to add some elements to it which I need in order to
manipulate my final editor, but they don't need to (shouldn't, actually)
be visible on the canvas. The class model should then look like this (I
might have made mistakes, like using an aggregation when I really should
have been using something else, feel free to correct me on this stuff :P):
http://farm4.static.flickr.com/3586/3341064424_4fbf2d400c_o. gif

As you can see, I've added an indtype-attribute to my Transition, and a
fuid-attribute to my Statechart. These are supposed to be able to be set,
but, like I said, should not be visible in the diagram (like for example
action, indication and event are).
Also, I have added a Data class. This class should contain some
information about data (obviously :)), but it's nothing the user need to
be able to see, so it should not be a graphical element in the editor,
like the other classes (except for Statechart) are.

My question is, how do I regenerate and manipulate the model files in
order to get what I want? Do I have to delete any of the old files, and do
I have to do all the steps all over again? I don't want to mess any of my
old code up, so I feel that the less I have to do, the better...
And, of course, is it possible to have these attributes/objects in my
model and be able to manipulate them, without them being visible in the
editor?

Sincerely,
Anna
Re: Creating "invisible" diagram parts [message #221066 is a reply to message #220755] Tue, 10 March 2009 16:08 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Anna,

Looks like you just hve to update .ecore model and regenerate EMF-generated
code from it (nothing to do with GMF-generated code..).

-----------------
Alex Shatalin
Previous Topic:Ecore diagram code
Next Topic:How to define Top and Bottom for TopDownLayoutProvider?
Goto Forum:
  


Current Time: Thu May 09 10:04:54 GMT 2024

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

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

Back to the top