Skip to main content



      Home
Home » Eclipse Projects » GEF » Disable selection of figures in GEF
Disable selection of figures in GEF [message #642857] Thu, 02 December 2010 19:55 Go to next message
Eclipse UserFriend
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: Thu, 02 December 2010 21:09] by Moderator

Re: Disable selection of figures in GEF [message #644435 is a reply to message #642857] Sat, 11 December 2010 03:29 Go to previous messageGo to next message
Eclipse UserFriend
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] Sun, 12 December 2010 21:41 Go to previous message
Eclipse UserFriend
Excellent, that worked perfectly, thanks.
Previous Topic:draw2d interaction sequence
Next Topic:Can I change the cursor during DnD?
Goto Forum:
  


Current Time: Sat Apr 26 21:32:56 EDT 2025

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

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

Back to the top