Graphical definition of "modules" with top and bottom pins [message #163051] |
Wed, 28 November 2007 10:04 |
Eclipse User |
|
|
|
Originally posted by: benoit.casoetto.gazdefrance.com
Hello everyone,
I have tried quite a bit to create an editor where modules are nodes which
contain top and bottom pins, much like the "circuit" item available in the
logic example (see picture below, even though it's a bit small).
http://help.eclipse.org/help31/topic/org.eclipse.gmf.doc/tut orials/diagram/addedTool.jpg
***
Is it possible to achieve such a result without modifying generated code ?
***
Along my way to finding a solution, i have found a few hints : use a
compartment for each set of pins, probably use a border layout... but
can't seem to make it work !
The model to base the editor on is quite simple :
* map -> (0..infinity) module
* module -> (0..infinity) top_pin
-> (0..infinity) bottom_pin
* top_pin
* bottom_pin
+ other stuff for linking elements together (but i believe we don't have
to care about that here)
Are my hints correct ? How should they interact ? I am a bit lost here...
I am interested in any answer or link to an appropriate documentation
regarding this question...
Thanks !
|
|
|
Powered by
FUDForum. Page generated in 0.03086 seconds