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


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