JFace TitleAreaDialog [message #454777] |
Thu, 28 April 2005 13:12 |
Eclipse User |
|
|
|
Originally posted by: mek.mekistory.de
Hello erverybody,
I have a "MyDialog extends TitleAreDialog" class and added there two input
fields.
When I press "OK", I should get the values of the two input buttons with:
if (myDialog.open() == IDialogConstants.OK_ID){
String benutzer = anmeldeDialog.text_Benutzername.getText();
String passwort = anmeldeDialog.text_Passwort.getText();
}
But the compiler says that the "widget is disposed" in line "String benu..."
Which method and how do I have to overwrite so that the widget is not
disposed before I get the two values.
Thank you in advance...
|
|
|
Re: JFace TitleAreaDialog [message #454780 is a reply to message #454777] |
Thu, 28 April 2005 14:03 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
In your mydialog subclass, override the okpressed() method and get the
text from the two fields, and store them in the subclass. Then do
super.okPressed(). Provide two methods on your subclass to retrieve
those two pieces of text.
--
Thanks,
Rich Kulp
|
|
|
Re: JFace TitleAreaDialog [message #454796 is a reply to message #454780] |
Thu, 28 April 2005 23:55 |
Eclipse User |
|
|
|
Originally posted by: mek.mekistory.de
Hi Rich,
I've made it work with your help.
Thank You
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> schrieb im Newsbeitrag
news:d4qqmh$ami$1@news.eclipse.org...
> In your mydialog subclass, override the okpressed() method and get the
> text from the two fields, and store them in the subclass. Then do
> super.okPressed(). Provide two methods on your subclass to retrieve those
> two pieces of text.
>
>
> --
> Thanks,
> Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03184 seconds