Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Extending the Application Model from fragment project
Extending the Application Model from fragment project [message #1404416] Fri, 01 August 2014 08:41 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
I have a Core Project, which is extended by the core fragment project .

Further there is a Plugin Project, which is extended by the fragment project.

All of them should contribute to the ApplicaitonModel.e4xml (application model).
Contributing to the ApplicaitonModel.e4xml from the PluginProject is possible by using the extension point "org.eclipse.e4.workbench.model" and creating an model-Fragment as described here http://www.vogella.com/tutorials/Eclipse4Modularity/article.html

Question: But how can I contribute to core's ApplicaitonModel.e4xml from the core fragment project, fragment project?


http://i520.photobucket.com/albums/w327/schajtan/2014-08-01_10-24-53_zpsde975f71.png

[Updated on: Fri, 01 August 2014 08:42]

Report message to a moderator

Re: Extending the Application Model from fragment project [message #1404420 is a reply to message #1404416] Fri, 01 August 2014 09:22 Go to previous message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Contributing to the model from fragments is possible.

You have to use the fact, that the fragment is merged with it's host at runtime.
So the bundle-url in model-fragment-definition should point to the host plugin, not to the fragment.

RIGHT
bundleclass://com.mine.core/com.mine.core.ViewFactoryAddon
WRONG
bundleclass://com.mine.core.fragment/com.mine.core.ViewFactoryAddon


RIGHT
bundleclass://com.mine.plugin/com.mine.plugin.ViewFactoryAddon
WRONG
bundleclass://com.mine.plugin.fragment/com.mine.plugin.ViewFactoryAddon

http://i520.photobucket.com/albums/w327/schajtan/2014-08-01_11-22-03_zps25be88c2.png
Previous Topic:Application Model Evolution
Next Topic:Differences in Luna?
Goto Forum:
  


Current Time: Thu Jun 24 07:28:18 GMT 2021

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

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

Back to the top