Posted on 2007-03-29 10:09
nemo 阅读(1069)
评论(2) 编辑 收藏 所属分类:
EclipseRCP/SWT/JFACE
problem loading ResourceNavigator
关键词:Eclipse RCP, ResourceNavigator
解决者:Eingetragen von Volker Wegert. | So, 04/02/2007 - 13:17
When starting an eclipse instance (using the current development
version) that uses the ResourceNavigator plugin, you might experience
an exception during startup.
!
ENTRY org.eclipse.equinox.registry
4
1
2007
-
02
-
04
13
:
12
:
21.150
!
MESSAGE Unable to create view ID org.eclipse.ui.views.ResourceNavigator: Plug
-
in
"
org.eclipse.ui.ide
"
was unable to instantiate
class
"
org.eclipse.ui.views.navigator.ResourceNavigator
"
.
!
STACK
0
java.lang.IllegalStateException
at org.eclipse.core.runtime.Platform.getPluginRegistry(Platform.java:
748
)
at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:
723
)
at org.eclipse.ui.views.navigator.ResourceNavigator.initLinkingEnabled(ResourceNavigator.java:
413
)
at org.eclipse.ui.views.navigator.ResourceNavigator.
<
init
>
(ResourceNavigator.java:
241
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39
)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27
)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
494
)
at java.lang.Class.newInstance0(Class.java:
350
)
at java.lang.Class.newInstance(Class.java:
303
)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
170
)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:
787
)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:
243
)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:
51
)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:
234
)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:
69
)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:
305
)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:
210
)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:
566
)
at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:
3881
)
at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:
2905
)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:
1948
)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:
2888
)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:
1696
)
at org.eclipse.ui.internal.Workbench.access$
11
(Workbench.java:
1681
)
at org.eclipse.ui.internal.Workbench$
18
.run(Workbench.java:
1560
)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:
37
)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:
1504
)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:
183
)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:
751
)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:
1109
)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:
1878
)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
425
)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149
)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:
95
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25
)
at java.lang.reflect.Method.invoke(Method.java:
585
)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:
522
)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
147
)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
104
)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
74
)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
354
)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
170
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25
)
at java.lang.reflect.Method.invoke(Method.java:
585
)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:
339
)
at org.eclipse.core.launcher.Main.basicRun(Main.java:
283
)
at org.eclipse.core.launcher.Main.run(Main.java:
984
)
at org.eclipse.core.launcher.Main.main(Main.java:
959
)
This causes the navigator view to display nothing but a grey box. It
took me some time to figure out what went wrong here, especially since
the validation of the plug-in set did not show any problems. You have
to enable
org.eclipse.core.runtime.compatibility
in order to get the resource navigator working.
------------------------
即当ResourceNavigator在RCP程序中无法正常调用时,需要在依赖项中增加一个兼容性插件
org.eclipse.core.runtime.compatibility。这个办法很好地解决了我遇到的问题。