No access to workspace in RCP product? [message #459041] |
Mon, 27 November 2006 14:55  |
Eclipse User |
|
|
|
I'm developing an RCP application and defined a new navigator, extending
ResourceNavigator. Whenever the navigator is opened, it throws an
IllegalStateException:
!ENTRY org.eclipse.equinox.registry 4 1 2006-11-27 20:49:15.801
!MESSAGE Unable to create view ID videodb.views.MyResourceNavigator: Plug-in
"videoDB" was unable to instantiate class
"net.videodb.views.MyResourceNavigator".
!STACK 0
java.lang.IllegalStateException
at org.eclipse.core.runtime.Platform.getPluginRegistry(Platform .java:748)
at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:72 3)
at
org.eclipse.ui.views.navigator.ResourceNavigator.initLinking Enabled(ResourceNavigator.java:411)
at
org.eclipse.ui.views.navigator.ResourceNavigator.<init>(ResourceNavigator.java:239)
at net.videodb.views.MyResourceNavigator.<init>(MyResourceNavigator.java:6)
I've read several posts about using getStateLocation()- calling it during
bundle startup doesn't fix the issue though.
Any ideas?
Thanks,
Andi
|
|
|
|
Re: No access to workspace in RCP product? [message #459419 is a reply to message #459367] |
Thu, 30 November 2006 17:36  |
Eclipse User |
|
|
|
Found the difference. Non-working:
layout.addStandaloneView(IPageLayout.ID_RES_NAV, true, IPageLayout.LEFT,
0.25f, editorArea);
Working:
layout.addStandaloneView(MyId, true, IPageLayout.LEFT, 0.25f,
editorArea);
Difference: MyId points to org.eclipse.ui.navigator.CommonNavigator where as
IPageLayout.ID_RES_NAV points to org.eclipse.ui.navigator.ResourceNavigator.
Whatever...
|
|
|
Powered by
FUDForum. Page generated in 0.02863 seconds