Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » An error has occurred when creating this view
An error has occurred when creating this view [message #78315] Sat, 19 July 2003 12:30 Go to next message
Eclipse UserFriend
Originally posted by: esalbuquerque.superig.com.br

Hello !

I still have problems......

I created a plugin:
----------------------------------------------
package org.eclipse.ptestejdt07;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.core.dom.*;
import java.util.*;
import org.eclipse.ui.*;
import org.eclipse.core.resources.*;
public class PTestejdt07View extends ViewPart {
Label label;
public PTestejdt07View() {
}
public void createPartControl(Composite parent) {
AST ast = new AST(new TreeMap());
IWorkspace workspace = ResourcesPlugin.getWorkspace();

label = new Label(parent, SWT.WRAP);
label.setText("\n After IWorkspace...");
}
public void setFocus() {
//
}
}
----------------------------------------------
Error:
An error has occurred when creating this view
----------------------------------------------
What is happening ??
I would like to receive an example that works...

Thanks,
Eduardo Soares Albuquerque
Re: An error has occurred when creating this view [message #78345 is a reply to message #78315] Sat, 19 July 2003 13:57 Go to previous message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
Hi Eduardo,

open the plugin runtime error log.

Window->Show View->PDE Runtime->Error Log

The Error Log will show you the trace that leads to the error.

Regards,

Michael

Eduardo Albuquerque wrote:

> Hello !
>
> I still have problems......
>
> I created a plugin:
> ----------------------------------------------
> package org.eclipse.ptestejdt07;
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.SWT;
> import org.eclipse.ui.part.ViewPart;
> import org.eclipse.jdt.core.*;
> import org.eclipse.jdt.core.dom.*;
> import java.util.*;
> import org.eclipse.ui.*;
> import org.eclipse.core.resources.*;
> public class PTestejdt07View extends ViewPart {
> Label label;
> public PTestejdt07View() {
> }
> public void createPartControl(Composite parent) {
> AST ast = new AST(new TreeMap());
> IWorkspace workspace = ResourcesPlugin.getWorkspace();
>
> label = new Label(parent, SWT.WRAP);
> label.setText("\n After IWorkspace...");
> }
> public void setFocus() {
> //
> }
> }
> ----------------------------------------------
> Error:
> An error has occurred when creating this view
> ----------------------------------------------
> What is happening ??
> I would like to receive an example that works...
>
> Thanks,
> Eduardo Soares Albuquerque
>
>
Previous Topic:java.lang.NullPointerException
Next Topic:HTML /JSP Editor
Goto Forum:
  


Current Time: Sat Oct 19 16:19:21 GMT 2024

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

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

Back to the top