Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Shortcuts issue while initializing a diagram from model
Shortcuts issue while initializing a diagram from model [message #187614] Mon, 19 May 2008 03:10 Go to next message
Eclipse UserFriend
Originally posted by: zzhangh.cn.ibm.com

Hi,
Suppose there are two sub-diagrams (D1 and D2) under the root
diagram(D0), if a shortcut of a node in D1 was created in D2 and linked
to a node in D2, then if I initialize a new diagram from the model file,
the shortcut itself and the link are both invisible in the diagram.
(still can be seen from properties view because they are in the model)

This constantly causes problem because user can't see the link, he might
re-create the shortcut hence causes duplication.

Is it possible to also initialize the shortcuts (if the source and
target of an edge are not in same sub-diagram, treat the source/target
as an shortcut)

Regards,
Hao
Re: Shortcuts issue while initializing a diagram from model [message #187657 is a reply to message #187614] Mon, 19 May 2008 11:11 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hao,

Shortcuts are stored in diagram file, so it's normal that new diagram does
not contain any shortcuts. If you need to create shortcuts on diagram initialization
then try modifying generated ???InitDiagramFileAction.

-----------------
Alex Shatalin
Previous Topic:Compartment and LayoutManager
Next Topic:TargetDecoration for ConnectionEditPart
Goto Forum:
  


Current Time: Sat Apr 27 01:24:26 GMT 2024

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

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

Back to the top