Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Disable selection of figures in GEF
Disable selection of figures in GEF [message #642857] Fri, 03 December 2010 00:55 Go to next message
oinkl is currently offline oinkl
Messages: 17
Registered: September 2010
Junior Member
I'm using GEF to create a graphical editing application using Eclipse as an RCP.

In the graphical editor, I have a figure that draws a scale/ruler. How do I disable selection of this ruler figure?

Currently, whenever I click the ruler, the editor centres the view on the ruler. I don't want the ruler to even be clickable or selectable in the first place.

How do I achieve this?

Thanks.

[Updated on: Fri, 03 December 2010 02:09]

Report message to a moderator

Re: Disable selection of figures in GEF [message #644435 is a reply to message #642857] Sat, 11 December 2010 08:29 Go to previous messageGo to next message
Alexander Nyßen is currently offline Alexander Nyßen
Messages: 46
Registered: July 2009
Location: Lünen
Member
Hi,

EditPart#isSelectable() should do the trick. You will have to overwrite it for those edit parts that should not be selectable.

Cheers
Alexander
Re: Disable selection of figures in GEF [message #644526 is a reply to message #644435] Mon, 13 December 2010 02:41 Go to previous message
oinkl is currently offline oinkl
Messages: 17
Registered: September 2010
Junior Member
Excellent, that worked perfectly, thanks.
Previous Topic:draw2d interaction sequence
Next Topic:Can I change the cursor during DnD?
Goto Forum:
  


Current Time: Thu Sep 18 21:42:28 GMT 2014

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

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