Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [ActionSets] 3.1 M6 vs. 3.1 RC1
[ActionSets] 3.1 M6 vs. 3.1 RC1 [message #286283] Mon, 06 June 2005 15:52 Go to next message
Eclipse UserFriend
Originally posted by: eric.brenner.gd-ais.com

I recently tried to upgrade from Eclipse 3.1 M6 to 3.1 RC1. I ran into a
problem that didn't exist in the M6 build.

I have two plugins. One plugin depends on the other. The main plugin has
a defined ActionSet, Menu, and group marker.

Ex:

<actionSet
label="Database Connection"
description="Connect to DataBases"
visible="true"
id="com.gdais.eclipse.db.connection">
<menu
label="Database"
id="com.gdais.eclipse.db.menu1">
<groupMarker name="contents"/>
<separator name="additions"/>
</menu>
<action
toolbarPath="normal/database"
label="Open Connection"
icon="icons/ctool16/connect.gif"
tooltip="Open Database Connection"
class="com.gdais.eclipse.db.ui.ConnectToDatabase"
menubarPath="com.gdais.eclipse.db.menu1/contents"
id="com.gdais.eclipse.db.connect"/>
</actionSet>


In my other plugin, I have the following:


<actionSet
label="Database Loader"
description="Populate a Database"
visible="true"
id="com.gdais.set.database.loader.LoadAction">
<action
label="SL Database Loader"
class="com.gdais.set.database.loader.action.LoaderAction"
tooltip="Database Loader"
style="push"
menubarPath="com.gdais.eclipse.db.menu1/contents"
id="com.gdais.set.database.loader.action1"/>
</actionSet>


When I run my product, I get the message:

Invalid Menu Extension (Path is invalid):
com.gdais.set.database.loader.action1

It is complaining about the menubarPath value. This DID work in M6 (as
well as other previous versions). Does anyone here have any insight as to
what changed or what needs to be done?

Thanks,

Eric
Re: [ActionSets] 3.1 M6 vs. 3.1 RC1 [message #286325 is a reply to message #286283] Tue, 07 June 2005 09:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.brenner.gd-ais.com

I found a work around to my problem, but I don't think this is the way the
menu extension points should function. I had to re-define the menu in my
2nd plugin.

Ex:

<actionSet
label="Database Loader"
description="Populates Database"
visible="true"
id="com.gdais.set.database.loader.LoadAction">
<menu
id="com.gdais.eclipse.db.menu1"
label="Database">
<groupMarker name="contents"/>
</menu>
<action
class="com.gdais.set.database.loader.action.LoaderAction"
id="com.gdais.set.database.loader.action1"
label="SL Database Loader"
menubarPath="com.gdais.eclipse.db.menu1/contents"
style="push"/>
</actionSet>


I *SHOULD* have been able to just specify the menubarPath used in my
"root" plugin to avoid this workaround. As I stated before, this worked
in M6. I'm not sure what changed with RC1?
Re: [ActionSets] 3.1 M6 vs. 3.1 RC1 [message #287947 is a reply to message #286325] Fri, 08 July 2005 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Any official solution to this problem? I really don't like hacking menus.

Scott

> I found a work around to my problem, but I don't think this is the way
> the menu extension points should function. I had to re-define the
> menu in my 2nd plugin.
>
> Ex:
>
> <actionSet
> label="Database Loader"
> description="Populates Database"
> visible="true"
> id="com.gdais.set.database.loader.LoadAction">
> <menu
> id="com.gdais.eclipse.db.menu1"
> label="Database">
> <groupMarker name="contents"/>
> </menu>
> <action
>
> class="com.gdais.set.database.loader.action.LoaderAction"
> id="com.gdais.set.database.loader.action1"
> label="SL Database Loader"
> menubarPath="com.gdais.eclipse.db.menu1/contents"
> style="push"/>
> </actionSet>
> I *SHOULD* have been able to just specify the menubarPath used in my
> "root" plugin to avoid this workaround. As I stated before, this
> worked in M6. I'm not sure what changed with RC1?
>
Re: [ActionSets] 3.1 M6 vs. 3.1 RC1 [message #288099 is a reply to message #287947] Tue, 12 July 2005 10:54 Go to previous message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

Scott Delap wrote:
> Any official solution to this problem? I really don't like hacking menus.

The official solution is to re-define the menu in every plug-in that wishes
to use it.



cheers,
d.
Previous Topic:definig libs in a plugin
Next Topic:Plugin-export ERROR build.xml srcdir must be set!
Goto Forum:
  


Current Time: Fri May 09 19:09:00 EDT 2025

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

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

Back to the top