Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » problem with creating an editor[Urgent]
problem with creating an editor[Urgent] [message #293828] Mon, 31 October 2005 05:12 Go to next message
Eclipse UserFriend
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 #293830 is a reply to message #293828] Mon, 31 October 2005 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

That seems to be a bug with Eclipse. Check this bug report to check if the null-pointer exception is occuring at the same place as has been mentioned in Bug-Report. Do not compare line numbers. Bug-report has a much more bigger stack.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=57367
https://bugs.eclipse.org/bugs/show_bug.cgi?id=57130

If it is same, then update your current eclipse with the latest where the things are fixed.

And I dont think it is as urgent going by the name of the editor class com.vijai.matrix.plugin.ui.Editors.TCLEditor :-)

Thanks
Venkat
Re: problem with creating an editor[Urgent] [message #293839 is a reply to message #293828] Mon, 31 October 2005 08:47 Go to previous message
Eclipse UserFriend
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)
>
>
Previous Topic:Position Markups (visual cues) in editor Code Templates?
Next Topic:cvs keywords hosed!?
Goto Forum:
  


Current Time: Tue Jul 22 01:45:05 EDT 2025

Powered by FUDForum. Page generated in 0.06692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top