Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Draw lines on create
Draw lines on create [message #900152] Sat, 04 August 2012 14:03 Go to next message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
Hi everyone,


Is it possible to draw some lines when an object is being created or dragged from palette?
I would like to draw some guide lines, at the place where the object will be placed after layout.

Actually I'd like to draw them, and erase as creation is cancelled or the mouse goes over something else.


Thanks in advance.




Re: Draw lines on create [message #900250 is a reply to message #900152] Mon, 06 August 2012 03:35 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 556
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hello,

you can use custom LayoutEditPolicy and override showLayoutTargetFeedback/eraseTargetFeedback. You can take a look to here for an example.

Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Previous Topic:Single editor for multiple editor files
Next Topic:Select, Zoom and Note Palette Icon Location?
Goto Forum:
  


Current Time: Mon Jul 28 02:16:52 EDT 2014

Powered by FUDForum. Page generated in 0.02477 seconds