Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Referencing shared elements in different fragments
Referencing shared elements in different fragments [message #1413748] Fri, 29 August 2014 10:21 Go to next message
Stefan Häusler is currently offline Stefan HäuslerFriend
Messages: 23
Registered: May 2013
Junior Member
Hello all,

i have the following scenario:

A base plugin defines a couple of shared elements across perspectives
- a common editor area where all editors shall be opened...and where editors stay opened even if perspective changes
- a common view used across perspectives

In a second plugin "Perspective A plugin" and a third plugin "Perspective B plugin", i want to reuse these shared elements. I created the shared elements within the base plugin model fragment, but i am unable to reference these elements within placeholders in another fragment (here the plugin B and C).

Do i miss something here?

I also have similar use case with commands/handlers. I defined a common command in a base plugin and want to reuse it in a menu in some other plugin. Here i am also not able to reference the command defined in the base plugin.

Thanks in advance for your help!
Re: Referencing shared elements in different fragments [message #1413754 is a reply to message #1413748] Fri, 29 August 2014 10:47 Go to previous messageGo to next message
Stefan Häusler is currently offline Stefan HäuslerFriend
Messages: 23
Registered: May 2013
Junior Member
Hello,

one addition. I now found out how to reference these elements by using "Imports" of the specific part/partstack.

So the parts appear, but they are always empty. Annotated methods by e.g. @postConstruct. Are not called.

Any ideas regarding this problem?

Thanks!
Re: Referencing shared elements in different fragments [message #1413761 is a reply to message #1413754] Fri, 29 August 2014 11:05 Go to previous messageGo to next message
Marina Knieling is currently offline Marina KnielingFriend
Messages: 83
Registered: February 2013
Member
Hi Stefan,

have a look at this thread. It might be you're facing the same problem:

http://www.eclipse.org/forums/index.php/t/799006/

Cheers,
Marina

On 29.08.2014 12:47, Stefan Häusler wrote:
> Hello,
>
> one addition. I now found out how to reference these elements by using
> "Imports" of the specific part/partstack.
>
> So the parts appear, but they are always empty. Annotated methods by
> e.g. @postConstruct. Are not called.
>
> Any ideas regarding this problem?
>
> Thanks!
Re: Referencing shared elements in different fragments [message #1413804 is a reply to message #1413761] Fri, 29 August 2014 13:12 Go to previous message
Stefan Häusler is currently offline Stefan HäuslerFriend
Messages: 23
Registered: May 2013
Junior Member
Thanks Marina,

this pointed me to the right direction. I had the problem in each plugin importing javax.inject. Interestingly independently whether i specified a version or not.

I now switched to eclipse core and ui DI plugins.

Not very obvious, nonetheless...
Previous Topic:visibleWhen and core expressions
Next Topic:Editor Area disappearing when resizing the window
Goto Forum:
  


Current Time: Fri Apr 26 04:12:08 GMT 2024

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

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

Back to the top