Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » drawing temporary figure for selection
drawing temporary figure for selection [message #227558] Tue, 05 December 2006 10:45 Go to next message
Eclipse UserFriend
Originally posted by: daniel-p.gmx.de

Hi everybody,

When I click on an icon in one of my EditParts figure I'd like to show a
new temporary figure, which list some values. The user should now be able
to select a certain value from the list. After selecting a value this
figure is supposed to be deleted. Also it's supposed to be deleted
whenever I click somwhere else in the workbench. Does anybody know how I
could accomplish this or how this is done the best way?

Cheers,

Dan
Re: drawing temporary figure for selection [message #227588 is a reply to message #227558] Thu, 07 December 2006 22:49 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

You can try overriding your SelectionEditPolicy and draw this extra figure
in the feedback layer when you draw the selection handles and etc. Install
mouse listeners on that figure or it's sub-figures this should allow you
to react to various user actions properly.

Cheers,
Alex
Re: drawing temporary figure for selection [message #227799 is a reply to message #227588] Mon, 11 December 2006 12:31 Go to previous message
Eclipse UserFriend
Originally posted by: daniel-p.gmx.de

Thanks for your answer. I already acomplished to react to user selections.
My main problem is to get informed, when clicking somewhere else in the
workbench but in the graphical editor. I.e. on the Eclipse Edit Menu,
because then, the temporary figure has to be hidden as well. I need
something like an event for focus lost or something like that.

Thanks,

Dan
Previous Topic:location problem
Next Topic:Java "OutofMemory" problem
Goto Forum:
  


Current Time: Fri Mar 29 08:50:19 GMT 2024

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

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

Back to the top