Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » mark possible targetEditParts during Connection
mark possible targetEditParts during Connection [message #212403] Fri, 28 November 2008 11:26 Go to next message
Eclipse UserFriend
Hi,

during Creation of a Connection I would like to show possible Targets of
the Connection in a specific Colour.

Are there Listener for Connection Sarts and Ends that I could use?
I just don't know at witch point I should change the Colours of the Target
Edit Parts.

Any Help is Appreciated.

Best wishes,
Robert
Re: mark possible targetEditParts during Connection [message #212516 is a reply to message #212403] Mon, 01 December 2008 04:50 Go to previous message
Eclipse UserFriend
Hello hagane,

First suggestion from me will be: try handling corresponding requests by
newly created "HighlightConnectionTargetsEditPolicy". See generated ???BaseItemSemanticEditPolicy.getSemanticCommand()
method as a prototype of request handling. I think you should handle "CreateRelationshipRequest".


You can choose different ways to implement this feature (+ install this EditPolicy
onto the different diagram elements in accordance), but i think first you
can try installing this EditPolicy onto the EditPart representing link source
diagram element and highlight all the possible link targets from there on
link creation start. The open question is how to remove these "highligh frames"
(from wich place in a code).

HTH
-----------------
Alex Shatalin
Previous Topic:Converting a Object to a Diagram
Next Topic:How to get the underlying XML from a palette tool
Goto Forum:
  


Current Time: Fri May 09 19:12:11 EDT 2025

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

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

Back to the top