problem with creating an editor[Urgent] [message #293828] |
Mon, 31 October 2005 05:12  |
Eclipse User |
|
|
|
Hi,
i am trying to create and open an editor for files of type ".tcl",but
when i create a file of .tcl in the resource navigator, the editor throws
an exception which points always to the first line of the Editor class's
constructor. This Editor class is the one that extends TextEditor.
The exceptions thrown are as follows, please help
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.vijai.matrix.plugin.ui.Editors.TCLEditor.<init>(TCLEditor.java:18)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:162)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:232)
at
org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:252)
at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:837)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:543)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
|
|
|
|
Re: problem with creating an editor[Urgent] [message #293839 is a reply to message #293828] |
Mon, 31 October 2005 08:47  |
Eclipse User |
|
|
|
Sounds like the org.eclipse.ui.editors plug-in has not been loaded
correctly - you should be seeing some other exceptions in the log
explaining why.
-tom
Vijai wrote:
> Hi,
>
> i am trying to create and open an editor for files of type ".tcl",but
> when i create a file of .tcl in the resource navigator, the editor
> throws an exception which points always to the first line of the Editor
> class's constructor. This Editor class is the one that extends
> TextEditor. The exceptions thrown are as follows, please help
>
> 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.vijai.matrix.plugin.ui.Editors.TCLEditor.<init>(TCLEditor.java:18)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
> at java.lang.Class.newInstance0(Class.java:308)
> at java.lang.Class.newInstance(Class.java:261)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:162)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
>
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:232)
>
> at
> org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:252)
>
> at
> org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:837)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:543)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.24820 seconds