Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » PLAF conflict with SWT?
PLAF conflict with SWT? [message #467286] Fri, 27 January 2006 17:27 Go to next message
Eclipse UserFriend
Originally posted by: janene.r.mccrillis.lmco.com

I have an app that has been using the Compiere PLAF for a long while.
We've recently integrated some code from another group which uses the
SWT, and we're having major problems with the integrated code. If we
use either the defaul or metal PLAF, the program works fine. Turning on
the Compiere PLAF causes the SWT parts of the code to throw exceptions
of "widget disposed".

Anyone have any ideas of what within the Compiere PLAF could be
conflicting with SWT?

TIA,

Janene McCrillis
Re: PLAF conflict with SWT? [message #467298 is a reply to message #467286] Fri, 27 January 2006 22:47 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
it may be that the SWT code you're using doesn't always check for
"widget.isDisposed()" before trying to access the widget. If calls are
made to the widget in another thread (through, for example, use of
display.asyncExec) the widget may have already been disposed of in the
first thread and thus, this exception will be thrown.

note that null checks are not enough - the SWT component may be there,
but the underlying native OS widget isn't.


Janene McCrillis wrote:
> I have an app that has been using the Compiere PLAF for a long while.
> We've recently integrated some code from another group which uses the
> SWT, and we're having major problems with the integrated code. If we
> use either the defaul or metal PLAF, the program works fine. Turning on
> the Compiere PLAF causes the SWT parts of the code to throw exceptions
> of "widget disposed".
>
> Anyone have any ideas of what within the Compiere PLAF could be
> conflicting with SWT?
>
> TIA,
>
> Janene McCrillis
>
Re: PLAF conflict with SWT? [message #467347 is a reply to message #467286] Sun, 29 January 2006 19:31 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
I'm assuming that you're using SWT_AWT to bridge the two toolkits. Relative to SWT_AWT in the SWT hierarchy, which widget is throwing the disposal error?
Previous Topic:Redrawing
Next Topic:What components can be inserted in a ToolBar's separator?
Goto Forum:
  


Current Time: Sun Aug 18 20:02:09 GMT 2019

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

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

Back to the top