Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Not finding extension in plugin when run as RCP
Not finding extension in plugin when run as RCP [message #436002] Mon, 29 August 2005 14:33 Go to next message
Eclipse UserFriend
Originally posted by: cward.go-integral.com

I am on eclipse 3.1 gtk linux.

I have a RCP application that defines an extension point. For testing, I
have the application extend that extension point, calling it test. I
have a plugin called tracker that also extends the same extension point.

When I run the RCP application from the 'Launch the product' button on
the Overview tab of the product definition, my program can see both
extensions. When I do an export with the 'Eclipse Product export wizard'
and then launch the application from the command line, the application
does not see the extension from the tracker plugin.

What do I mean by see? I use this code to look for extensions to my
extension point :

IExtensionPoint[] extPointArray =
extReg.getExtensionPoints("my.plugin.path");
String extName = extPointArray[i].getUniqueIdentifier();
IExtensionPoint extPoint = extReg.getExtensionPoint(extName);
System.out.println("Found "+extArray.length+" extensions to navPlugin");

Using something like that code (removed the for loops and null checks),
I find two when I launch with eclipse, but only one when I launch as a RCP.

Is there something I need to do for my RCP application to scan the
plugins folder at startup so they will be in the registry?

Chris
Re: Not finding extension in plugin when run as RCP [message #436005 is a reply to message #436002] Mon, 29 August 2005 15:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mehow.remove.neurosoft.net

I had a similar problem recently and discovered that plugin.xml of the
plugin providing an extension was not exported, because it wasn't listed
in build.properties (I use manifest files so plugin.xml is not always
necesary). Check it, maybe it's the cause of your problem as well.

Michal

Chris Ward napisał(a):
> I am on eclipse 3.1 gtk linux.
>
> I have a RCP application that defines an extension point. For testing, I
> have the application extend that extension point, calling it test. I
> have a plugin called tracker that also extends the same extension point.
>
> When I run the RCP application from the 'Launch the product' button on
> the Overview tab of the product definition, my program can see both
> extensions. When I do an export with the 'Eclipse Product export wizard'
> and then launch the application from the command line, the application
> does not see the extension from the tracker plugin.
>
> What do I mean by see? I use this code to look for extensions to my
> extension point :
>
> IExtensionPoint[] extPointArray =
> extReg.getExtensionPoints("my.plugin.path");
> String extName = extPointArray[i].getUniqueIdentifier();
> IExtensionPoint extPoint = extReg.getExtensionPoint(extName);
> System.out.println("Found "+extArray.length+" extensions to navPlugin");
>
> Using something like that code (removed the for loops and null checks),
> I find two when I launch with eclipse, but only one when I launch as a RCP.
>
> Is there something I need to do for my RCP application to scan the
> plugins folder at startup so they will be in the registry?
>
> Chris
Re: Not finding extension in plugin when run as RCP [message #436008 is a reply to message #436002] Mon, 29 August 2005 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cward.go-integral.com

Why is it that even after a week of banging your head, you just have to
ask the question, and then all of a sudden it gets solved.

Anyway, it now works. I think the real issue was adding the
org.eclipse.update.configurator to the configuration page of my .product
file. When I did this, the config.ini no longer lists all the plugins it
knows, and has this line:

osgi.bundles=org.eclipse.core.runtime@2:start,org.eclipse.update.configurator@3:start

Is that correct? Adding this plugin is necessary to get other plugins
'scaned' at startup?

That wasn't the only issue, and I at first dismissed it when it didn't work.

I did two other things. I quit eclipse, kde, and all java threads. Then
I deleted all the workspace-* folders in my home directory.

After this "cleaning", it now sees to work.

Chris Ward wrote:
> I am on eclipse 3.1 gtk linux.
>
> I have a RCP application that defines an extension point. For testing, I
> have the application extend that extension point, calling it test. I
> have a plugin called tracker that also extends the same extension point.
>
> When I run the RCP application from the 'Launch the product' button on
> the Overview tab of the product definition, my program can see both
> extensions. When I do an export with the 'Eclipse Product export wizard'
> and then launch the application from the command line, the application
> does not see the extension from the tracker plugin.
>
> What do I mean by see? I use this code to look for extensions to my
> extension point :
>
> IExtensionPoint[] extPointArray =
> extReg.getExtensionPoints("my.plugin.path");
> String extName = extPointArray[i].getUniqueIdentifier();
> IExtensionPoint extPoint = extReg.getExtensionPoint(extName);
> System.out.println("Found "+extArray.length+" extensions to navPlugin");
>
> Using something like that code (removed the for loops and null checks),
> I find two when I launch with eclipse, but only one when I launch as a RCP.
>
> Is there something I need to do for my RCP application to scan the
> plugins folder at startup so they will be in the registry?
>
> Chris
Re: Not finding extension in plugin when run as RCP [message #436048 is a reply to message #436008] Tue, 30 August 2005 10:20 Go to previous message
Eclipse UserFriend
Originally posted by: mehow.remove.neurosoft.net

Chris Ward napisał(a):
> Anyway, it now works. I think the real issue was adding the
> org.eclipse.update.configurator to the configuration page of my .product
> file. When I did this, the config.ini no longer lists all the plugins it
> knows, and has this line:
>
> osgi.bundles=org.eclipse.core.runtime@2:start,org.eclipse.update.configurator@3:start
>
>
> Is that correct? Adding this plugin is necessary to get other plugins
> 'scaned' at startup?

That's right.

Michal
Previous Topic:Reloading the SelectionProvider
Next Topic:Is RCP a real subset of Platform ?
Goto Forum:
  


Current Time: Sat Dec 14 17:18:16 GMT 2024

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

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

Back to the top