Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Popup Menu
Popup Menu [message #179812] Sun, 01 May 2005 20:50 Go to next message
Eclipse UserFriend
Hi,

I have the following problem. In my editor I have a simple figure which I
am able to select. I have added a popup menu and some actions in there,
which are displayed. But when I call the getSelectedObjects()-method, it
always returns null. although a figure is selected. Anybody has an idea?

thx in advance
Re: Popup Menu [message #179946 is a reply to message #179812] Mon, 02 May 2005 10:46 Go to previous message
Eclipse UserFriend
Additional Information:

I use a Multipage-Editor.

When I call IStructuredSelection selections =
(IStructuredSelection)fWorkbenchPart.getSite().
getSelectionProvider().getSelection();

instead of getSelectedObjects() in my own Action, I ll get the selected
object.

But for predefinied Actions like "DELETE" this wont work. So do I need to
set a special SelectionProvider for the Multipage-Editor?
Previous Topic:multiple outline pages with MultiPageEditorPart
Next Topic:Wrong positioning of figures if editor is scrolled
Goto Forum:
  


Current Time: Thu Apr 25 06:33:32 GMT 2024

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

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

Back to the top