HELP: trouble getting overrideActionId to work [message #59666] |
Mon, 02 June 2003 14:45 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03021 seconds