Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Widget disposed exception after Ok?
Widget disposed exception after Ok? [message #462700] Mon, 17 October 2005 13:41 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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 18: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 11:03 Go to previous message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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: Fri Nov 28 23:10:29 GMT 2014

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

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