Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Nothing to merge when contributing to popup menu
Nothing to merge when contributing to popup menu [message #1728867] Fri, 08 April 2016 06:56 Go to next message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
Hi,

I am developing a pure e4 application and am having trouble with contributing to popup menus.

My setup:

plugin a:
- adds part 1 to the ui
- part 1 has popup menu plugin.a.part1.popupmenu

plugin b:
- declares a command c1
- declares a handler h1
- contributes to menu of part 1 via a fragment
- adds model fragment to fragment.e4xmi , element id: plugin.a.part1.popupmenu , featurename : children
- adds handledmenuitem with command c1 to plugin.a.part1.popupmenu as child

I use -clearPersistedState when I start the application in my dev env. Start order of the plugins are set to default.

Now every now and then the contribution is added but 50% of the time it is not added to the menu and I am getting

!MESSAGE Nothing to merge for "platform:/plugin/pluginb/fragment.e4xmi"

in the console log.

What am I doing wrong?

I am using Eclipse 4.4.1 (Luna).

Thanx in advance

Mihael
Re: Nothing to merge when contributing to popup menu [message #1728896 is a reply to message #1728867] Fri, 08 April 2016 10:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Did you declare a dependency from Plugin b to Plugin a, when we do the
merge we are sorting the fragments through bundle deps.

Tom

On 08.04.16 08:56, Mihael Schmidt wrote:
> Hi,
>
> I am developing a pure e4 application and am having trouble with
> contributing to popup menus.
>
> My setup:
>
> plugin a:
> - adds part 1 to the ui
> - part 1 has popup menu plugin.a.part1.popupmenu
>
> plugin b:
> - declares a command c1
> - declares a handler h1
> - contributes to menu of part 1 via a fragment
> - adds model fragment to fragment.e4xmi , element id:
> plugin.a.part1.popupmenu , featurename : children
> - adds handledmenuitem with command c1 to plugin.a.part1.popupmenu as
> child
>
> I use -clearPersistedState when I start the application in my dev env.
> Start order of the plugins are set to default.
>
> Now every now and then the contribution is added but 50% of the time it
> is not added to the menu and I am getting
>
> !MESSAGE Nothing to merge for "platform:/plugin/pluginb/fragment.e4xmi"
>
> in the console log.
>
> What am I doing wrong?
>
> I am using Eclipse 4.4.1 (Luna).
>
> Thanx in advance
>
> Mihael
Re: Nothing to merge when contributing to popup menu [message #1728904 is a reply to message #1728896] Fri, 08 April 2016 12:30 Go to previous message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
I had a package dependency from one plugin to the other.

Declaring a bundle dependency fixed my problem.

Thanx.

Mihael
Previous Topic:javaw.exe and eclipse.exe processes are not released when Eclipse exits (specific plugins issue)
Next Topic:Eclipse 3.x to E4 uplift. Could not start styling support...A null service reference is not allowed
Goto Forum:
  


Current Time: Fri Mar 29 01:48:30 GMT 2024

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

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

Back to the top