Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: NullPointerException in AbstractDecoratedTextEditor
Re: NullPointerException in AbstractDecoratedTextEditor [message #329604] Sun, 29 June 2008 23: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 10:27 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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: Wed Jul 17 19:41:17 GMT 2024

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

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

Back to the top