Add an item to Text menu? [message #448501] |
Tue, 11 January 2005 16: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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02419 seconds