Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Unwanted Menu & Toolbar Entries
Unwanted Menu & Toolbar Entries [message #448352] Fri, 21 April 2006 16:12 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #448677 is a reply to message #448673] Fri, 28 April 2006 05:34 Go to previous messageGo to next message
Imogen is currently offline ImogenFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Ken, look at Run -> tab Plug-ins have you there the org.eclipse.ui.ide
plugin selected? if yes, then deselect them.

regards
imogen
Re: Unwanted Menu & Toolbar Entries [message #448681 is a reply to message #448677] Fri, 28 April 2006 08:14 Go to previous messageGo to next message
Andrey Dulub is currently offline Andrey DulubFriend
Messages: 54
Registered: July 2009
Member
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.
Re: Unwanted Menu & Toolbar Entries [message #448682 is a reply to message #448673] Fri, 28 April 2006 08:29 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Editor Menu Contributions, Extension or Programmatic [message #448717 is a reply to message #448713] Fri, 28 April 2006 23:05 Go to previous message
Eclipse UserFriend
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...
Previous Topic:Howto set a description to my Feature in Help > About > Feature Details?
Next Topic:RMI and RCP
Goto Forum:
  


Current Time: Mon Nov 11 17:21:41 GMT 2024

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

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

Back to the top