Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Connection onMouseOver?
Connection onMouseOver? [message #709052] Wed, 03 August 2011 13:01 Go to next message
Michael Keppler is currently offline Michael KepplerFriend
Messages: 164
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 15:15 Go to previous message
Joerg Reichert is currently offline Joerg ReichertFriend
Messages: 80
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: Fri Apr 26 23:03:46 GMT 2024

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

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

Back to the top