Unwanted Menu & Toolbar Entries [message #448352] |
Fri, 21 April 2006 16: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...
|
|
|
Re: Unwanted Menu & Toolbar Entries [message #448673 is a reply to message #448352] |
Thu, 27 April 2006 21:38 |
Eclipse User |
|
|
|
Originally posted by: childress.shapetechllc.com
Anyone have any suggestions?
> 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...
|
|
|
|
|
Re: Unwanted Menu & Toolbar Entries [message #448682 is a reply to message #448673] |
Fri, 28 April 2006 08:29 |
Eclipse User |
|
|
|
Originally posted by: steffen.foldager.credit-suisse.com
If you want to control the menu 100%, don't use the standard menu ids like
IWorkbenchActionConstants.M_FILE in your ApplicationActionBarAdvisor:
Standard:
MenuManager fileMenu = new MenuManager("&File",
IWorkbenchActionConstants.M_FILE);
Custom:
MenuManager fileMenu = new MenuManager("&File", "myUniqueId");
This is the hard way, though, since you need to take special care of the
actions that you actually want to appear in your menus.
/Steffen
|
|
|
Re: Unwanted Menu & Toolbar Entries [message #448712 is a reply to message #448681] |
Fri, 28 April 2006 19:29 |
Eclipse User |
|
|
|
Originally posted by: childress.shapetechllc.com
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.
Ken...
|
|
|
Re: Unwanted Menu & Toolbar Entries [message #448713 is a reply to message #448712] |
Fri, 28 April 2006 19:43 |
|
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.
Later,
PW
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Editor Menu Contributions, Extension or Programmatic [message #448717 is a reply to message #448713] |
Fri, 28 April 2006 23: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.03514 seconds