Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » CheckedContainerTreeViewer getCheckedElements fails...(... due to SWTException widget is disposed)
CheckedContainerTreeViewer getCheckedElements fails... [message #664664] Mon, 11 April 2011 14:41 Go to next message
akoeck is currently offline akoeckFriend
Messages: 62
Registered: December 2010
Member
Hi, I want to get the checked Elements from my TreeViewer.
So I call the method getCheckedElements() but I always get a SWTException saying the widget is disposed. Why is this so?
I'm using the TreeViewer inside a WizardPage could this be the failure?
Re: CheckedContainerTreeViewer getCheckedElements fails... [message #664678 is a reply to message #664664] Mon, 11 April 2011 14:58 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-04-11 16:41, akoeck@gmx.de wrote:
> Hi, I want to get the checked Elements from my TreeViewer.
> So I call the method getCheckedElements() but I always get a
> SWTException saying the widget is disposed. Why is this so?
> I'm using the TreeViewer inside a WizardPage could this be the failure?

Without minimal code snippet we can only guess. My guess is that you try
to access the viewer at a point, where the underlying widget is already
disposed ;-)

In which WizardPage method are you trying to invoke getCheckedElements()?

[And no: There is no fundamental problem to use a TreeViewer in a
WizardPage, we use it all the day long]

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:problem building SWT JNI
Next Topic:[ZEST] changing default values in ZoomContributionItem
Goto Forum:
  


Current Time: Tue Feb 25 14:33:28 GMT 2020

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

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

Back to the top