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 18:03 Go to next message
Rui Domingues is currently offline Rui Domingues
Messages: 191
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 07:35 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 565
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 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: Thu Oct 02 16:44:34 GMT 2014

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

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