Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Fragment plugin not used outside of eclipse
Fragment plugin not used outside of eclipse [message #1407376] Tue, 12 August 2014 13:25 Go to next message
Alexander Klatt is currently offline Alexander KlattFriend
Messages: 59
Registered: April 2014
Member
Hello,

I am extending the functionality of my RCP application with a plugin that defines a fragment.

My plugin.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         id="id1"
         point="org.eclipse.e4.workbench.model">
      <fragment
            uri="fragment.e4xmi">
      </fragment>
   </extension>

</plugin>


From eclipse, everything works fine. But if I build with maven, the fragment is not used (even though it is present in the plugin folder of the output).

Does anyone have any idea where my mistake could be?
Re: Fragment plugin not used outside of eclipse [message #1407396 is a reply to message #1407376] Tue, 12 August 2014 13:56 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Hi,

is your fragment.e4xmi file included in build.properties?
Re: Fragment plugin not used outside of eclipse [message #1407402 is a reply to message #1407396] Tue, 12 August 2014 14:00 Go to previous messageGo to next message
Eclipse UserFriend
The extension registry only processes the plugin.xml for bundles that are either started or marked as lazily activated. PDE defaults to starting bundles, but OSGi & Tycho do not. Tick the "Activate this plug-in when one of its classes is loaded" in the plugin's manifest editor on the Overview page.

Brian.
Re: Fragment plugin not used outside of eclipse [message #1407410 is a reply to message #1407396] Tue, 12 August 2014 14:17 Go to previous message
Alexander Klatt is currently offline Alexander KlattFriend
Messages: 59
Registered: April 2014
Member
Paweł Doleciński wrote on Tue, 12 August 2014 13:56
Hi,

is your fragment.e4xmi file included in build.properties?


It was not, and now it works. Thanks!
Previous Topic:How to add shortcuts for Dynamic menus.
Next Topic:How to localize the Menu auf the CTabFolder
Goto Forum:
  


Current Time: Tue Mar 19 08:14:04 GMT 2024

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

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

Back to the top