Unwanted Menu & Toolbar Entries [message #448352] |
Fri, 21 April 2006 12:12  |
Eclipse User |
|
|
|
Originally posted by: childress.shapetechllc.com
I have created my own MultiPageEditor using the supplied RCP example as a
template. I now appear to have the following items contributed for me
that I do not want.
1) A File->Open menu entry.
2) A toolbar icon for "Goto last edit location".
Where are these coming from and how do I prevent them from appearing in my
application? I have not been able to figure this out.
Thanks.
Ken...
|
|
|
|
|
|
|
|
|
Editor Menu Contributions, Extension or Programmatic [message #448717 is a reply to message #448713] |
Fri, 28 April 2006 19:05  |
Eclipse User |
|
|
|
Originally posted by: childress.shapetechllc.com
Paul Webster wrote:
> Ken Childress wrote:
>> Andrey Dulub wrote:
>>
>>> In some cases, you need plugin functionality but you don't like its
>>> contributions. You may to edit plugin.xml file and remove
>>> corresponding sections.
>>
>>
>> Well, therein lies part of the problem. The items I don't want don't
>> appear in the plugins.xml file.
>>
>> Neither can I deselect org.eclipse.ui from the runtime configuration
>> because my application won't start when I do that.
>>
>> I am getting an error, Invalid Menu Extension (Path is invalid):
>> org.eclipse.ui.edit.text.gotoLastEditPosition, when I start my
>> application. I don't know why, just as I don't know where the menu and
>> toolbar additions are coming from.
>>
> You can search for its definition in your main eclipse Plug-in Registry
> view.
> That one looks like it was contributed to the org.eclipse.ui.actionSets
> extension point from the org.eclipse.ui.editors plugin.
I found this problem while searching the archives, and it is because I
have not added the Navigate menu item. I added the Navigate menu item,
and this error goes away. But, the question still remains, is there a way
to remove things like this that I might not want or need?
This brings up another issue I'm struggling with...
What is the best or preferred way of adding menu and toolbar contributions
for a specific editor?
In my application, most of the menu items will added when there is an
active editor. I can add them programatically in
ApplicationActionBarAdvisor, but I'm not sure they are editor
contributions there. I think the better way is to add them via the
EditorActions extension. But, I'm having challenges here too (probably
not doing something right).
For example, I can't seem to get the Edit menu item to show, nor am I able
just to add a new menu item as per the Contributing Actions to the Eclipse
Workbench article. I keep getting the Invalid Menu Extension error.
Ken...
|
|
|
Powered by
FUDForum. Page generated in 0.05808 seconds