Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin was not loaded
Plugin was not loaded [message #330977] Wed, 20 August 2008 09:20 Go to next message
yau is currently offline yauFriend
Messages: 14
Registered: July 2009
Junior Member
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 15:49 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
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 #331008 is a reply to message #330989] Thu, 21 August 2008 04:11 Go to previous messageGo to next message
KwanKin Yau is currently offline KwanKin YauFriend
Messages: 32
Registered: July 2009
Member
Thanks for your detailed reply! You are right. The problem is the
org.eclipse.update.configurator plugin was not defined in the my product's
plugin list.
Thank you very much!

Yau

----- Original Message -----
From: "Andrew Niefer" <aniefer@ca.ibm.com>
Newsgroups: eclipse.platform
Sent: Wednesday, August 20, 2008 11:49 PM
Subject: Re: Plugin was not loaded


> 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
>
Re: Plugin was not loaded [message #331009 is a reply to message #330989] Thu, 21 August 2008 04:50 Go to previous messageGo to next message
yau is currently offline yauFriend
Messages: 14
Registered: July 2009
Junior Member
Thanks for your detaled reply. You are right. The problem is the
org.eclipse.update.configurator plugin was not included in the product
configuration.
Thank you very much!

Yau

"Andrew Niefer" <aniefer@ca.ibm.com>
??????:g8heeb$rl0$1@build.eclipse.org...
> 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
>
Re: Plugin was not loaded [message #331013 is a reply to message #330989] Thu, 21 August 2008 08:54 Go to previous message
yau is currently offline yauFriend
Messages: 14
Registered: July 2009
Junior Member
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
Previous Topic:Building Eclipse 3.4 From Sources Fails
Next Topic:Problem with showing popup message in Custom Install Handler
Goto Forum:
  


Current Time: Tue Jul 16 15:46:17 GMT 2024

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

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

Back to the top