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
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 632
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.

Previous Topic:Single editor for multiple editor files
Next Topic:Select, Zoom and Note Palette Icon Location?
Goto Forum:

Current Time: Sun Apr 30 19:24:40 GMT 2017

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

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