Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Removing editMenu from popup contributions throws an error in error log
Removing editMenu from popup contributions throws an error in error log [message #229925] Wed, 13 May 2009 08:43 Go to next message
Lavanya K C is currently offline Lavanya K CFriend
Messages: 23
Registered: July 2009
Junior Member
Hi

I want to remove edit menu from the right click context menu of the
diagram, for which I am using the following line in diagram's plugin.xml
for the contributionItemProvider extension.
<popupPredefinedItem id="editMenu" remove="true" />
This works fine.
But everytime I right click on the canvas, I get an error in error log
"Plug-in 'org.eclipse.gmf.runtime.diagram.ui.providers' contributed an
invalid Menu Extension (Path: 'editMenu' is invalid):
org.eclipse.gmf.runtime.diagram.ui.actions.internal.Duplicat eActionDelegate "

Though it is harmless, this is annoying. Can someone help me in this
regard?

Thanks for any help,
Lavanya.
Re: Removing editMenu from popup contributions throws an error in error log [message #230015 is a reply to message #229925] Wed, 13 May 2009 11:36 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Lavanya,

looks like some actions were contributed into an edit menu by org.eclipse.gmf.runtime.diagram.ui.providers
plugin. You can check plugin.xml for this plugin and remove corresponding
actions as well.

-----------------
Alex Shatalin
Re: Removing editMenu from popup contributions throws an error in error log [message #230186 is a reply to message #230015] Thu, 14 May 2009 07:11 Go to previous messageGo to next message
Lavanya K C is currently offline Lavanya K CFriend
Messages: 23
Registered: July 2009
Junior Member
Yes Alex.
But this action "DuplicateActionDelegate" is contributed using
org.eclipse.ui.popupMenus, hence I cannot remove it using
contributionItemProviders extension. Is there any other way to remove the
popup contributions?
Re: Removing editMenu from popup contributions throws an error in error log [message #230209 is a reply to message #230186] Thu, 14 May 2009 09:12 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Lavanya,

Well, no. ;-)
At least, i do not know about it..

-----------------
Alex Shatalin
Re: Removing editMenu from popup contributions throws an error in error log [message #650110 is a reply to message #229925] Fri, 21 January 2011 19:10 Go to previous messageGo to next message
Adrian Padilla is currently offline Adrian PadillaFriend
Messages: 2
Registered: January 2011
Junior Member
Hello Lavanya,

Do you ever get any answer to this problem?

I have the same annoying error Confused
Re: Removing editMenu from popup contributions throws an error in error log [message #650316 is a reply to message #650110] Mon, 24 January 2011 11:40 Go to previous message
Romain Bioteau is currently offline Romain BioteauFriend
Messages: 65
Registered: August 2009
Location: Grenoble
Member
Hi,
you have to remove the
menu.appendToGroup("editGroup", deleteAction);


In the generated DiagramEditorContextMenuProvider, buildContextMenu method.

I strongly recommend to use Templates to do so, but you can use @generated not if you prefer.

HTH
Romain


R&D Engineer at BonitaSoft
Previous Topic:[Solved] Validate for Non Ascii characters
Next Topic:GMF Mapping Hierarchy
Goto Forum:
  


Current Time: Fri Apr 26 03:47:17 GMT 2024

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

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

Back to the top