[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.albireo] SWT_AWT cannot subclass Composite
|
Hi,
I am making use of SWT_AWT bridge for bring my Swing application into
Eclipse/SWT (I cannot move higher from Eclipse/SWT 3.2 and hence I am using
SWT_AWT and not Albireo). While doing so, I referred to the article
http://www.eclipse.org/articles/article.php?file=Article-Swing-SWT-Integration/index.html
by Gordon Hirsch and recently made use of his Example code given there. As
per this, all the necessary workarounds to make SWT_AWT work for you are
applied to a subclass object of Composite (EmbeddedSwingComposite in his
code). As per his recommendation I subclassed this and then used it in my
code. However, I am encountering NPE on the EventThread and while trying to
find solutions for the same I came across this:
http://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg04614.html which
suggests NOT to subclass Composite.
Is this a known issue with SWT_AWT and is there any workaround for the same?
Any help/direction would be really useful!
Thanks,
Rahul