Problem with a CommonNavigator in a Product (RCP)... [message #448857] |
Fri, 05 May 2006 10:42  |
Eclipse User |
|
|
|
Hi! Thanks for spending your time for helping me.
I have the followind problem. I made a View which is extension of
org.eclipse.ui.navigation.viewer. My viewer works fine when it's ran as
Eclipse Application, however when I try to run it as Product I see the
following stack trace :
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
at
org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:66)
at
org.eclipse.ui.internal.navigator.CommonNavigatorManager.ini t(CommonNavigatorManager.java:120)
at
org.eclipse.ui.internal.navigator.CommonNavigatorManager.<init >(CommonNavigatorManager.java:88)
at
org.eclipse.ui.navigator.CommonNavigator.createCommonManager (CommonNavigator.java:441)
at
org.eclipse.ui.navigator.CommonNavigator.createPartControl(C ommonNavigator.java:170)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:332)
at
org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:197)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActi ve(WorkbenchPage.java:3842)
at
org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2871)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1932)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2857)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1665)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 650)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1529 )
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1473)
at
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:702)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.disy_bg.dais.megatrans.product.Application.run(Applicati on.java:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
I wonder why the argument is null and how can I set it?
Thanks in advance
Nenko
|
|
|
|
|
|
|
Re: Problem with a CommonNavigator in a Product (RCP)... [message #449830 is a reply to message #449587] |
Sat, 20 May 2006 17:49  |
Eclipse User |
|
|
|
Hi Nenko,
If you're trying to use the Resource extension in an RCP app, you will
need org.eclipse.ui.navigator.resources as part of your RCP app, and its
dependencies. Otherwise, if you're just trying to use the
Common Navigator framework, you do not need this plugin.
-MDE.
Nenko Tabakov wrote:
> Thanks for the advise. I saw that the block, where the
> assertNotNull(...) fails, now is surrounded by if statement, however now
> I have another problem. My Viewer can't find the Label and Content
> Provider, which reside in org.eclipse.ui.navigator.resources.
> Nenko
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.14963 seconds