Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Add an item to Text menu?
Add an item to Text menu? [message #448501] Tue, 11 January 2005 16:00 Go to next message
Eclipse UserFriend
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 16:24 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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
>
Previous Topic:selection when having one object multiple times inserted in tree
Next Topic:Adding a control to a composite
Goto Forum:
  


Current Time: Wed Oct 28 21:24:51 GMT 2020

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

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

Back to the top