Popup Menu [message #179812] |
Sun, 01 May 2005 20:50 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02875 seconds