Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » HELP: trouble getting overrideActionId to work
HELP: trouble getting overrideActionId to work [message #59666] Mon, 02 June 2003 14:45
Eclipse UserFriend
I have created a couple of dedicated text editors, and I am
leveraging the Eclipse marker infrastructure.

Everything works well except that my own Add Task etc.
menu contributions are additive below the org.eclipse.ui
ones. Obviously, for my editors, I don't want that.

The overrideActionId Action attribute defined in
org.eclipse.ui.popupMenus looks like it is designed to
meet my need, but I see from the documentation that
they only work for object contributions. In this case, I
am unsure what to provide for the objectClass
attribute.

Here is the relevant fragment from my plugin.xml file:

<extension
id="com.projtech.bp.ui.text.ActionEditorAction"
name="Action Editor"
point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="com.projtech.bp.ui.text.ActionEditor#TextRulerContext "

id="com.projtech.bp.ui.actioneditor.ruler.context.actions">
<action
label="Add Bookmark"
overrideActionId
="org.eclipse.ui.texteditor.BookmarkRulerAction"
class="com.projtech.bp.ui.text.ModelBookmarkRulerAction"
menubarPath="additions"
id="com.projtech.bp.ui.text.ActionBookmarkRulerAction" />
</objectContribution>
</extension>

What should I specify in the objectClass attribute to attach
to the vertical ruler context menu specifically in this editor
only? Even a pointer to where the override is done in the
code would be helpful, I've been unable to locate it.

many thanks,

Campbell
Previous Topic:A cycle was detected in the classpath of project: StarList
Next Topic:Icon on a cascading menu?
Goto Forum:
  


Current Time: Tue Jun 03 05:13:03 EDT 2025

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

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

Back to the top