Add an item to Text menu? [message #448501] |
Tue, 11 January 2005 11:00  |
Eclipse User |
|
|
|
Originally posted by: michaelpress.yahoo.com
I want to add an item to the popup menu that seems to be automatically
created on cells in a Table (it has Undo, Cut/Copy/Paste, etc.). I can
create my own menu, but I'd rather not have to reimplement the existing
features.
I tried calling getMenu on the Table, the Text used for the currently
editable cell and the cursor. All return null.
I've tried adding an extension to plugin.xml. My class is instantiated
but nothing new appears in the menu. Here's the xml:
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
id="netcharts.designer.eclipse.widgets.TableEditor"
targetID="#TextEditorContext">
<action
id=" netcharts.designer.eclipse.widgets.TableEditor.pasteFromExce l "
label="Paste from Excel"
class=" netcharts.designer.eclipse.widgets.actions.TableEditorAction Delegate "
menubarPath="additions"
/>
</viewerContribution>
...
Am I doing something wrong here? Any other ideas?
Thanks,
Michael
|
|
|
Re: Add an item to Text menu? [message #448530 is a reply to message #448501] |
Tue, 11 January 2005 11:24  |
Eclipse User |
|
|
|
Sorry but there is no way to get the default operating system menu on
Windows.
"Michael Press" <michaelpress@yahoo.com> wrote in message
news:cs0t64$umq$1@www.eclipse.org...
> I want to add an item to the popup menu that seems to be automatically
> created on cells in a Table (it has Undo, Cut/Copy/Paste, etc.). I can
> create my own menu, but I'd rather not have to reimplement the existing
> features.
>
> I tried calling getMenu on the Table, the Text used for the currently
> editable cell and the cursor. All return null.
>
> I've tried adding an extension to plugin.xml. My class is instantiated
> but nothing new appears in the menu. Here's the xml:
>
> <extension point="org.eclipse.ui.popupMenus">
> <viewerContribution
> id="netcharts.designer.eclipse.widgets.TableEditor"
> targetID="#TextEditorContext">
> <action
> id=" netcharts.designer.eclipse.widgets.TableEditor.pasteFromExce l "
> label="Paste from Excel"
>
class=" netcharts.designer.eclipse.widgets.actions.TableEditorAction Delegate "
> menubarPath="additions"
> />
> </viewerContribution>
> ...
>
> Am I doing something wrong here? Any other ideas?
>
> Thanks,
> Michael
>
|
|
|
Powered by
FUDForum. Page generated in 0.24565 seconds