Issue installing personal plug-in [message #125659] |
Mon, 09 February 2009 14:33 |
Julien Manankiandrianana Messages: 37 Registered: July 2009 |
Member |
|
|
Hi everybody,
Here's my problem : I developed a plugin which is targeted to be used with
equinox and when I test it using the "Launch an Eclipse application" link
it works just fine but when I install it with the associated Feature and
Update Site I get an exception with this stackTrace :
java.lang.NullPointerException
at dev.com.finder.MyClass.findAllOpenProjectsLocation s(MyClass.java:87)
at dev.com.finder.MyClass.find(MyClass.java:41)
at dev.com.finder.views.JacomoFinderView.createPartCo
ntrol(MyClass.java:28)
at org.eclipse.ui.internal.ViewReference.createPartHe
lper(ViewReference.java:371)
at org.eclipse.ui.internal.ViewReference.createPart(V
iewReference.java:230)
and the corresponding lines are :
85 for( IProject p : projects )
86 {
87 System.out.println( p.getRawLocation().toOSString() );
88 if( p.isOpen() )
89 locations.add( p.getRawLocation().toString() );
90 }
so p is obviously not null and my guess is that the problem comes from the
getRawLocation() call, but how come it works when I test it and it doesn't
when I install it ?
here's the manifest.mf by the way this might help you help me :
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jacomo Finder Plug-in
Bundle-SymbolicName: dev.com.thalesgroup.jacomo.finder;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: dev.com.thalesgroup.jacomo.finder.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: dev.com.thalesgroup.jacomo.finder,
dev.com.thalesgroup.jacomo.finder.views
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources;bundle-version="3.1.0",
org.eclipse.ui;bundle-version="3.1.0";resolution:=optional
Julien
|
|
|
Powered by
FUDForum. Page generated in 0.03115 seconds