Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Connection onMouseOver?
Connection onMouseOver? [message #709052] Wed, 03 August 2011 09:01 Go to next message
Michael Keppler is currently offline Michael Keppler
Messages: 161
Registered: July 2009
Senior Member
Hi,

having all the mouse and key handling encapsulated in Graphiti gives the users a fast start. But is it possible to change the (hidden) interaction concepts at all?

Example: For complex diagram layouts I want to have any connection show a different color/style, while the mouse is hovering over the connection line. This makes tracing the connection very comfortable. Can I do something like that in Graphiti? And if so, where to start?

Ciao, Michael
Re: Connection onMouseOver? [message #709161 is a reply to message #709052] Wed, 03 August 2011 11:15 Go to previous message
Joerg Reichert is currently offline Joerg Reichert
Messages: 78
Registered: July 2009
Location: Leipzig
Member
Hi Michael,

you may have a look at org.eclipse.graphiti.ui.internal.parts.ConnectionEditPart. I think, you have add here a EditPolicy that handles the highlighting. EditPolicy is actually a GEF concept, and a similar forum entry can be found here.

Hope that helps.

Cheers,
Joerg


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Previous Topic:GRAPHITI based editor in a RCP
Next Topic:dynamical CreateFeatures ?
Goto Forum:
  


Current Time: Wed Jul 30 13:23:05 EDT 2014

Powered by FUDForum. Page generated in 0.01428 seconds