Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT_AWT and ViewPart

Sorry. Here it is, taken from platform .log :

!ENTRY org.eclipse.ui 4 4 janv. 23, 2004 12:04:50.246
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 janv. 23, 2004 12:04:50.246
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
    at org.eclipse.swt.internal.BidiUtil.windowProc(BidiUtil.java:647)
    at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:1757)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1986)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
    at org.eclipse.core.launcher.Main.run(Main.java:742)
    at org.eclipse.core.launcher.Main.main(Main.java:581)


Thanks for help.

Mathieu

Steve Northover wrote:

How about providing the error?




Mathieu Fougeray <mathieu.fougeray@xxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

01/23/2004 04:44 AM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        [platform-swt-dev] SWT_AWT and ViewPart



Hi all,

I try to use SWT_AWT in a ViewPart but I can't get my plugin working,
the workbench tells me there was an error creating view, coming from the
line : The SWT_AWT.newFrame(...) in the following snippet.
Does somebody know how to solve this problem?
Thanks for help.

Mathieu Fougeray.


public class BarChartView extends ViewPart {
   public static final String ID_VIEW =
"eurobios.orsis.views.BarChartView"; //$NON-NLS-1$
 
   public BarChartView() {
   }

   public void createPartControl(Composite parent) {
     
       Composite chartComp = new Composite(parent, SWT.EMBEDDED);
       java.awt.Frame chartFrame = SWT_AWT.new_Frame(chartComp);
   }

   public void setFocus() {
   }
}
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top