paletteviewer [message #164271] |
Tue, 18 January 2005 11:27 |
Eclipse User |
|
|
|
Originally posted by: tm_trvs.yahoo.com
hi
i'm trying to create a PaletteViewer, but i'm not able to instanciate it.
the problem is that the PaletteViewer's initialization uses the
DefaultPaletteViewerPreferences default's constructor which in turn access
GEFplugin to get its preference store.
i'm developing an rcp application and the GEFPlugin is null...what am i
missing?
can anyone help me?
TIA
Tom
|
|
|
|
Re: paletteviewer [message #164417 is a reply to message #164352] |
Tue, 18 January 2005 20:11 |
Eclipse User |
|
|
|
Originally posted by: tm_trvs.yahoo.com
they are too many questions for a dummy like me...
well, GEF plugin is showed up in Plugin Details
i'm launching an rcp application; it doesn't run inside eclipse
workbench...it's a standalone application
actually, i don't understand when is GEFPlugin created, but there are lots
of things that i don't understand :)
i'm able to use GraphicalEditor, for instance, but none of the editors
with palette
maybe GEF isn't intended to use in rcp apps?
this is the .log file:
!ENTRY org.eclipse.core.runtime 4 2 2005-01-18 19:55:34.779
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.ExceptionInInitializerError
at
com.siemens.salsa.PaletteTeste.createPaletteViewer(PaletteTe ste.java:44)
at com.siemens.salsa.PaletteTeste.createPartControl(PaletteTest e.java:36)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:148)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.ui.internal.PartPane.doCreateChildControl(PartPa ne.java:144)
at
org.eclipse.ui.internal.ViewPane.doCreateChildControl(ViewPa ne.java:135)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane .java:349)
at org.eclipse.ui.internal.ViewFactory$1.run(ViewFactory.java:3 98)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.ui.internal.ViewFactory.busyRestoreView(ViewFact ory.java:287)
at org.eclipse.ui.internal.ViewFactory$2.run(ViewFactory.java:5 82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at org.eclipse.ui.internal.ViewFactory.restoreView(ViewFactory. java:579)
at
org.eclipse.ui.internal.ViewFactory$ViewReference.getPart(Vi ewFactory.java:106)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:32 9)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:60 7)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
at
org.eclipse.ui.internal.presentations.newapi.PresentablePart Folder.select(PresentablePartFolder.java:266)
at
org.eclipse.ui.internal.presentations.newapi.LeftToRightTabO rder.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.newapi.TabbedStackPres entation.selectPart(TabbedStackPresentation.java:381)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1034)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1008)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:11 83)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:520)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:472)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:477)
at
org.eclipse.ui.internal.PerspectiveHelper.activate(Perspecti veHelper.java:230)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:779)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:2028)
at
org.eclipse.ui.internal.WorkbenchWindow$4.run(WorkbenchWindo w.java:2158)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2144)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:565)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:579)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1170)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:178)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:665)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:886)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1516)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:285)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at com.siemens.salsa.client.SalsaApplication.run(SalsaApplicati on.java:24)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:220)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:710)
at org.eclipse.core.launcher.Main.main(Main.java:694)
Caused by: java.lang.NullPointerException
at
org.eclipse.gef.ui.palette.DefaultPaletteViewerPreferences.<init >(DefaultPaletteViewerPreferences.java:62)
at
org.eclipse.gef.ui.palette.PaletteViewer.<clinit>(PaletteViewer.java:89)
... 54 more
!ENTRY org.eclipse.ui 4 4 2005-01-18 19:55:34.842
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
!ENTRY org.eclipse.core.runtime 4 2 2005-01-18 19:55:35.217
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.NoClassDefFoundError
at
org.eclipse.gef.ui.palette.PaletteViewerProvider.createPalet teViewer(PaletteViewerProvider.java:56)
at
org.eclipse.gef.ui.palette.FlyoutPaletteComposite.setState(F lyoutPaletteComposite.java:557)
at
org.eclipse.gef.ui.palette.FlyoutPaletteComposite.updateStat e(FlyoutPaletteComposite.java:602)
at
org.eclipse.gef.ui.palette.FlyoutPaletteComposite.<init>(FlyoutPaletteComposite.java:195)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.cr eatePartControl(GraphicalEditorWithFlyoutPalette.java:75)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:148)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.ui.internal.PartPane.doCreateChildControl(PartPa ne.java:144)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane .java:349)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java :218)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1026)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1008)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:11 83)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:383)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAr eaHelper.java:281)
at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.ja va:791)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:777)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:900)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:651)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:637)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2207)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2139)
at org.eclipse.ui.internal.WorkbenchPage.access$5(WorkbenchPage .java:2131)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.ja va:2117)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2112)
at
com.siemens.salsa.client.SalsaWorkbenchAdvisor.postWindowOpe n(SalsaWorkbenchAdvisor.java:48)
at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow .java:586)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:587)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1170)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:178)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:665)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:886)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1516)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:285)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at com.siemens.salsa.client.SalsaApplication.run(SalsaApplicati on.java:24)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:220)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:710)
at org.eclipse.core.launcher.Main.main(Main.java:694)
thanks for your help
tom
|
|
|
|
Re: paletteviewer [message #164573 is a reply to message #164439] |
Wed, 19 January 2005 12:19 |
Eclipse User |
|
|
|
Originally posted by: tm_trvs.yahoo.com
hi
this time i haev good news
efectively there was a problem with my plug-in dependencies, but i don't
now what dependencie was missing (views was already added)...i added
dependencies, removed, added, removed... :)
now it's working
thanks a lot
|
|
|
Powered by
FUDForum. Page generated in 0.28464 seconds