| Plugin was not loaded [message #330977] | 
Wed, 20 August 2008 05:20   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi! 
 
I have 2 plugin project, one is a RCP application, it defines an extension  
point, the other is an "normal" plugin, it defines an extension. 
 
My problem is, when I run the application in eclipse ide environment, it's  
OK, the RCP application can dect the extension defined by the plugin,  
because in the run configuration I specified launch with these 2 plugin. But  
when I export the RCP application to an directory, and also export the  
normal plugin to the target plugin directory, then I launch the RCP  
application(even if with -clean parameter), the extension contributed by the  
normal plugin was not found, it seems the normal plugin was not loaded.  
What's wrong in my case? 
 
The MANIFEST.MF of the normal plugin as following: 
 
Manifest-Version: 1.0 
Bundle-ManifestVersion: 2 
Bundle-Name: Cosumer Plug-in 
Bundle-SymbolicName: net.yau.test.extensionreg.cosumer;singleton:=true 
Bundle-Version: 1.0.0 
Bundle-Activator: net.yau.test.extensionreg.cosumer.Activator 
Require-Bundle: org.eclipse.ui, 
 org.eclipse.core.runtime, 
 net.yau.test.extensionreg.master;bundle-version="1.0.0" 
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 
Bundle-ActivationPolicy: lazy 
 
 
PS: I am use Eclipse 3.4. 
 
Thanks! 
Yau
 |  
 |  
  | 
| Re: Plugin was not loaded [message #330989 is a reply to message #330977] | 
Wed, 20 August 2008 11:49    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Make sure your plug-in is getting installed. 
Look at the osgi.bundles property in your  
eclipse/configuration/config.ini file. 
 
Generally there are 3 patterns here: 
1) All bundles in your product are listed here, make sure your plugin is  
  in the list. 
 
2) org.eclipse.update.configurator is in the list, it takes care of  
scanning the plugins directory and installing what it finds there 
 
3) org.eclipse.equinox.simpleconfigurator is in the list, it reads the  
bundles.info file specified with the  
org.eclipse.equinox.simpleconfigurator.configUrl property.  That  
explicitly lists out the bundles that will be installed. 
 
-Andrew 
 
yau wrote: 
> Hi! 
>  
> I have 2 plugin project, one is a RCP application, it defines an extension  
> point, the other is an "normal" plugin, it defines an extension. 
>  
> My problem is, when I run the application in eclipse ide environment, it's  
> OK, the RCP application can dect the extension defined by the plugin,  
> because in the run configuration I specified launch with these 2 plugin. But  
> when I export the RCP application to an directory, and also export the  
> normal plugin to the target plugin directory, then I launch the RCP  
> application(even if with -clean parameter), the extension contributed by the  
> normal plugin was not found, it seems the normal plugin was not loaded.  
> What's wrong in my case? 
>  
> The MANIFEST.MF of the normal plugin as following: 
>  
> Manifest-Version: 1.0 
> Bundle-ManifestVersion: 2 
> Bundle-Name: Cosumer Plug-in 
> Bundle-SymbolicName: net.yau.test.extensionreg.cosumer;singleton:=true 
> Bundle-Version: 1.0.0 
> Bundle-Activator: net.yau.test.extensionreg.cosumer.Activator 
> Require-Bundle: org.eclipse.ui, 
>  org.eclipse.core.runtime, 
>  net.yau.test.extensionreg.master;bundle-version="1.0.0" 
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6 
> Bundle-ActivationPolicy: lazy 
>  
>  
> PS: I am use Eclipse 3.4. 
>  
> Thanks! 
> Yau  
>  
>
 |  
 |  
  | 
 | 
 | 
| Re: Plugin was not loaded [message #331013 is a reply to message #330989] | 
Thu, 21 August 2008 04:54   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I have an other problem, that is the return value of  
IConfigurationElement.getAttribute() was not translated. 
 
First, in the extension point shema declaration, I specified  
translatable="true" for one attribute("name"). 
2nd, I specify "%xxx" for the value of "name" attribute in the normal  
plugin's extension declaration, and in normal plugin, I created  
plugin.properties file and wrote one line xxx=yyyy. 
3, When I run the RCP application and call  
IConfigurationElement.getAttribute("name"), it return "%xxx" not "yyyy". 
 
But the platform plug-in developer guide said: "Note that any translation  
specified in the plug-in manifest file is automatically applied. ". 
 
What's wrong? 
 
Yau
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03795 seconds