Problems creating an editor. Help please? [message #449570] |
Mon, 15 May 2006 16:20  |
Eclipse User |
|
|
|
Originally posted by: kammerj.bit-sys.com
I am trying to incorporate the MultiPageEditor example from Eclipse:
Building Commercial-Quality Pulg-ins (Chapter 8) into a simple RCP
application. All I want to happen at this point is for the editor to open
up when I select the corresponding menu item.
However when I select the menu item the application is throwing an
exception (See below) that seems to indicate a default plugin editor needs
to be initialized somewhere. The method EditorsPlugin.getDefault() is
returning a null value so the null pointer exception is what I would
expect, however I am not sure why the default editor is not being set or
from where it is expected to be set in the first place. Obviously I am
missing something.
Can anyone help point me in the right direction?
Additional and possibly relevant information: I am using the -noverify tag
when running the application as failure to do so was resulting in the
following error:
(class: org/eclipse/ui/texteditor/AbstractDecoratedTextEditor, method:
<init> signature: ()V) Incompatible argument to function
This was true both running under the 1.42 and 1.5 JREs. The full
stacktrace from without using the -noverify tag is also reproduced below.
Thanks in advance !
-- John Kammer
-----------------------------------------
Here's the method where the null pointer is encountered.
package org.eclipse.ui.editors.text;
...
/**
* {@inheritDoc}
*
* This method configures the editor but does not define a
* <code>SourceViewerConfiguration</code>. When only interested in
* providing a custom source viewer configuration, subclasses may extend
* this method.
*/
protected void initializeEditor() {
setEditorContextMenuId("#TextEditorContext"); //$NON-NLS-1$
setRulerContextMenuId("#TextRulerContext"); //$NON-NLS-1$
setHelpContextId(ITextEditorHelpContextIds.TEXT_EDITOR);
-----> setPreferenceStore(EditorsPlugin.getDefault().getPreferenceS tore());
configureInsertMode(SMART_INSERT, false);
setInsertMode(INSERT);
}
======================
StackTrace:
!SESSION 2006-05-15 15:44:55.418
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -application com.bitsystems.MenuDemo.application
-pdelaunch
Command-line arguments: -application com.bitsystems.MenuDemo.application
-data /home/kammerj/runtime-MenuDemo -dev
file:/home/kammerj/workspace/.metadata/.plugins/org.eclipse. pde.core/RCP
MenuDemo/dev.properties -pdelaunch -consoleLog -os linux -ws gtk -arch x86
!ENTRY org.eclipse.ui 4 0 2006-05-15 15:45:04.815
!MESSAGE Unable to create editor ID
com.bitsystems.MenuDemo.editors.PropertiesEditor: An unexpected exception
was thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ui.editors.text.TextEditor.initializeEditor(Text Editor.java:86)
at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.<init >(AbstractDecoratedTextEditor.java:216)
at org.eclipse.ui.editors.text.TextEditor.<init>(TextEditor.java:66)
at
com.bitsystems.MenuDemo.editors.PropertiesEditor.createSourc ePage(PropertiesEditor.java:174)
at
com.bitsystems.MenuDemo.editors.PropertiesEditor.createPages (PropertiesEditor.java:145)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:241)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:384)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:28 3)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:269)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:391)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 56)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:60)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:212)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:202)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:758)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:665)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:628)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2360)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2241)
at
com.bitsystems.MenuDemo.actions.SimpleEditAction.run(SimpleE ditAction.java:29)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.bitsystems.MenuDemo.Application.run(Application.java:21)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
================
Stacktrace running without the -noverify tag:
!SESSION 2006-05-15 16:12:23.424
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -application com.bitsystems.MenuDemo.application
-pdelaunch
Command-line arguments: -application com.bitsystems.MenuDemo.application
-data /home/kammerj/runtime-MenuDemo -dev
file:/home/kammerj/workspace/.metadata/.plugins/org.eclipse. pde.core/RCP
MenuDemo/dev.properties -pdelaunch -consoleLog -os linux -ws gtk -arch x86
!ENTRY org.eclipse.ui 4 4 2006-05-15 16:12:30.246
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 2006-05-15 16:12:30.248
!MESSAGE (class: org/eclipse/ui/texteditor/AbstractDecoratedTextEditor,
method: <init> signature: ()V) Incompatible argument to function
Unhandled event loop exception
Reason:
!STACK 0
java.lang.VerifyError: (class:
org/eclipse/ui/texteditor/AbstractDecoratedTextEditor, method: <init>
signature: ()V) Incompatible argument to function
at
com.bitsystems.MenuDemo.editors.PropertiesEditor.createSourc ePage(PropertiesEditor.java:174)
at
com.bitsystems.MenuDemo.editors.PropertiesEditor.createPages (PropertiesEditor.java:145)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:241)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:384)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:28 3)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:269)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:391)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 56)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:60)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:212)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:202)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:758)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:665)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:628)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2360)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2241)
at
com.bitsystems.MenuDemo.actions.SimpleEditAction.run(SimpleE ditAction.java:29)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.bitsystems.MenuDemo.Application.run(Application.java:21)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
(class: org/eclipse/ui/texteditor/AbstractDecoratedTextEditor, method:
<init> signature: ()V) Incompatible argument to function
|
|
|
Re: Problems creating an editor. Help please? [message #449578 is a reply to message #449570] |
Tue, 16 May 2006 04:42   |
Eclipse User |
|
|
|
John, this sounds like you are not developing against the same sources
that you let your plug-in run against. Try to import
org.eclipse.ui.editors and its prerequisites into your development
workspace.
-tom
John Kammer wrote:
> I am trying to incorporate the MultiPageEditor example from Eclipse:
> Building Commercial-Quality Pulg-ins (Chapter 8) into a simple RCP
> application. All I want to happen at this point is for the editor to
> open up when I select the corresponding menu item.
> However when I select the menu item the application is throwing an
> exception (See below) that seems to indicate a default plugin editor
> needs to be initialized somewhere. The method EditorsPlugin.getDefault()
> is returning a null value so the null pointer exception is what I would
> expect, however I am not sure why the default editor is not being set or
> from where it is expected to be set in the first place. Obviously I am
> missing something.
> Can anyone help point me in the right direction?
>
> Additional and possibly relevant information: I am using the -noverify
> tag when running the application as failure to do so was resulting in
> the following error: (class:
> org/eclipse/ui/texteditor/AbstractDecoratedTextEditor, method: <init>
> signature: ()V) Incompatible argument to function
> This was true both running under the 1.42 and 1.5 JREs. The full
> stacktrace from without using the -noverify tag is also reproduced below.
> Thanks in advance !
> -- John Kammer
>
> -----------------------------------------
>
> Here's the method where the null pointer is encountered.
> package org.eclipse.ui.editors.text;
> ...
> /**
> * {@inheritDoc}
> *
> * This method configures the editor but does not define a
> * <code>SourceViewerConfiguration</code>. When only interested in
> * providing a custom source viewer configuration, subclasses may extend
> * this method.
> */
> protected void initializeEditor() {
> setEditorContextMenuId("#TextEditorContext"); //$NON-NLS-1$
> setRulerContextMenuId("#TextRulerContext"); //$NON-NLS-1$
> setHelpContextId(ITextEditorHelpContextIds.TEXT_EDITOR);
> ----->
> setPreferenceStore(EditorsPlugin.getDefault().getPreferenceS tore());
> configureInsertMode(SMART_INSERT, false);
> setInsertMode(INSERT);
> }
>
> ======================
> StackTrace:
>
> !SESSION 2006-05-15 15:44:55.418
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Framework arguments: -application com.bitsystems.MenuDemo.application
> -pdelaunch
> Command-line arguments: -application
> com.bitsystems.MenuDemo.application -data /home/kammerj/runtime-MenuDemo
> -dev
> file:/home/kammerj/workspace/.metadata/.plugins/org.eclipse. pde.core/RCP
> MenuDemo/dev.properties -pdelaunch -consoleLog -os linux -ws gtk -arch x86
>
> !ENTRY org.eclipse.ui 4 0 2006-05-15 15:45:04.815
> !MESSAGE Unable to create editor ID
> com.bitsystems.MenuDemo.editors.PropertiesEditor: An unexpected
> exception was thrown.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.ui.editors.text.TextEditor.initializeEditor(Text Editor.java:86)
> at
> org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.<init >(AbstractDecoratedTextEditor.java:216)
>
> at org.eclipse.ui.editors.text.TextEditor.<init>(TextEditor.java:66)
> at
> com.bitsystems.MenuDemo.editors.PropertiesEditor.createSourc ePage(PropertiesEditor.java:174)
>
> at
> com.bitsystems.MenuDemo.editors.PropertiesEditor.createPages (PropertiesEditor.java:145)
>
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:241)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:384)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:28 3)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:269)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:391)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1102)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1051)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 56)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:60)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:212)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:202)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:758)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:665)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:628)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2360)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2241)
> at
> com.bitsystems.MenuDemo.actions.SimpleEditAction.run(SimpleE ditAction.java:29)
>
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at com.bitsystems.MenuDemo.Application.run(Application.java:21)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
>
>
> ================
> Stacktrace running without the -noverify tag:
>
> !SESSION 2006-05-15 16:12:23.424
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Framework arguments: -application com.bitsystems.MenuDemo.application
> -pdelaunch
> Command-line arguments: -application
> com.bitsystems.MenuDemo.application -data /home/kammerj/runtime-MenuDemo
> -dev
> file:/home/kammerj/workspace/.metadata/.plugins/org.eclipse. pde.core/RCP
> MenuDemo/dev.properties -pdelaunch -consoleLog -os linux -ws gtk -arch x86
>
> !ENTRY org.eclipse.ui 4 4 2006-05-15 16:12:30.246
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2006-05-15 16:12:30.248
> !MESSAGE (class: org/eclipse/ui/texteditor/AbstractDecoratedTextEditor,
> method: <init> signature: ()V) Incompatible argument to function
> Unhandled event loop exception
> Reason:
> !STACK 0
> java.lang.VerifyError: (class:
> org/eclipse/ui/texteditor/AbstractDecoratedTextEditor, method: <init>
> signature: ()V) Incompatible argument to function
> at
> com.bitsystems.MenuDemo.editors.PropertiesEditor.createSourc ePage(PropertiesEditor.java:174)
>
> at
> com.bitsystems.MenuDemo.editors.PropertiesEditor.createPages (PropertiesEditor.java:145)
>
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:241)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:384)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:28 3)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:269)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:391)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1102)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1051)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 56)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:60)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:212)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:202)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:758)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:665)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:628)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2360)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2241)
> at
> com.bitsystems.MenuDemo.actions.SimpleEditAction.run(SimpleE ditAction.java:29)
>
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at com.bitsystems.MenuDemo.Application.run(Application.java:21)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> (class: org/eclipse/ui/texteditor/AbstractDecoratedTextEditor, method:
> <init> signature: ()V) Incompatible argument to function
>
>
>
|
|
|
|
|
Re: Problems creating an editor. Help please? [message #449614 is a reply to message #449607] |
Tue, 16 May 2006 13:47  |
Eclipse User |
|
|
|
Originally posted by: kammerj.bit-sys.com
Tom,
Thanks again. I was in fact missing some plugins and for reasons unknown Eclipse seemed reluctant to be willing to load them. I ended up just deleting the target plugin directory and recreating it. Once accomplished, I was able to get the required plugins to load.
While I am sure there is was a better way to have done this, it worked.
On to the next problem now. killing them one at a time...
Thanks again,
-- John Kammer
|
|
|
Powered by
FUDForum. Page generated in 0.06519 seconds