Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Widget disposed exception after Ok?
Widget disposed exception after Ok? [message #462700] Mon, 17 October 2005 09:41 Go to next message
Eclipse UserFriend
ADialog d = new
ADialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getShell());
if(d.open() != InputDialog.OK)
return;
// i get a wdiegt disposed exception on the next call
// how to i keep the dialog around long enough to grab the data after Ok is
hit?
ADialog.ADialogData ret = d.getDialogData();
Re: Widget disposed exception after Ok? [message #462710 is a reply to message #462700] Mon, 17 October 2005 14:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Where are you storing the dialog data? What is your implementation? It
appears you must be trying to access some data that is stored on the SWT
widget instead of in the ADialog itself.

Drew wrote:
> ADialog d = new
> ADialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getShell());
> if(d.open() != InputDialog.OK)
> return;
> // i get a wdiegt disposed exception on the next call
> // how to i keep the dialog around long enough to grab the data after Ok is
> hit?
> ADialog.ADialogData ret = d.getDialogData();
>
>
>

--
Thanks,
Rich Kulp
Re: Widget disposed exception after Ok? [message #462727 is a reply to message #462710] Tue, 18 October 2005 07:03 Go to previous message
Eclipse UserFriend
That did it. I was storing the data in the composite , now i store the data
in a data struct in the dlg and pack it during

protected void buttonPressed(int buttonId) {
if (IDialogConstants.OK_ID == buttonId)
{
fillDialogData();
}
super.buttonPressed(buttonId);
}
thanks
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:dj0p2k$7ki$1@news.eclipse.org...
> Where are you storing the dialog data? What is your implementation? It
> appears you must be trying to access some data that is stored on the SWT
> widget instead of in the ADialog itself.
>
> Drew wrote:
> > ADialog d = new
> >
ADialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getShell());
> > if(d.open() != InputDialog.OK)
> > return;
> > // i get a wdiegt disposed exception on the next call
> > // how to i keep the dialog around long enough to grab the data after Ok
is
> > hit?
> > ADialog.ADialogData ret = d.getDialogData();
> >
> >
> >
>
> --
> Thanks,
> Rich Kulp
Previous Topic:Treeviewer and Editing Objects (Newbie)
Next Topic:Tutorrial of KTable
Goto Forum:
  


Current Time: Wed Jul 23 16:25:20 EDT 2025

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

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

Back to the top