Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Re: NullPointerException in AbstractDecoratedTextEditor
Re: NullPointerException in AbstractDecoratedTextEditor [message #329604] Sun, 29 June 2008 19:31 Go to next message
Eclipse UserFriend
Originally posted by: publicMailingAddress.gmail.com

oops!

wrong code.

import org.eclipse.ui.editors.text.TextEditor;

public class TestApp
{

public static void main(String[] args)
{
TextEditor te = new TextEditor();
}
}

that's my code.
Re: NullPointerException in AbstractDecoratedTextEditor [message #329687 is a reply to message #329604] Tue, 01 July 2008 06:27 Go to previous message
Eclipse UserFriend
Ryan wrote:
> oops!
>
> wrong code.
>
> import org.eclipse.ui.editors.text.TextEditor;
>
> public class TestApp
> {
>
> public static void main(String[] args)
> {
> TextEditor te = new TextEditor();
> }
> }
>
> that's my code.
This code can't work. The TextEditor is a part that's supposed to be
created inside a workbench. Obviously, your code neither creates nor
starts a workbench.

Dani
>
>
Previous Topic:OpenEditor on an input object (instead of a file)
Next Topic:code template
Goto Forum:
  


Current Time: Sat May 03 13:33:56 EDT 2025

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

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

Back to the top