Skip to main content

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 DominguesFriend
Messages: 194
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
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member


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


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Single editor for multiple editor files
Next Topic:Select, Zoom and Note Palette Icon Location?
Goto Forum:

Current Time: Wed Oct 21 02:41:54 GMT 2020

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

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

Back to the top