DialogSettings [message #145681] |
Fri, 17 October 2003 09:28  |
Eclipse User |
|
|
|
I would like for the plugin I am developing to store the last n values a
user enters on one of my dialogs. I use the following line to attempt to
get my dialog settings:
IDialogSettings settings = MyPlugin.getDefault().getDialogSettings();
According to the documentation, if a dialog settings file is not found in
my plug-in directory, an empty DialogSettings file will be created for me.
However, my problem is that the file doesn't get created for me
automatically. I can create one explicitly by using the
settings.save(filename) function, but I don't want to do this myself.
Am I overlooking something?
Regards,
Lenora
|
|
|
Re: DialogSettings [message #147876 is a reply to message #145681] |
Wed, 22 October 2003 15:31  |
Eclipse User |
|
|
|
Just for closure...
Within my code, I overwrote shutdown(). Somehow my method did not include
a call to super.shutdown() which actually performs the saving of the
dialog settings file. Now everything works as expected.
Lenora wrote:
> I would like for the plugin I am developing to store the last n values a
> user enters on one of my dialogs. I use the following line to attempt to
> get my dialog settings:
> IDialogSettings settings = MyPlugin.getDefault().getDialogSettings();
> According to the documentation, if a dialog settings file is not found in
> my plug-in directory, an empty DialogSettings file will be created for me.
> However, my problem is that the file doesn't get created for me
> automatically. I can create one explicitly by using the
> settings.save(filename) function, but I don't want to do this myself.
> Am I overlooking something?
> Regards,
> Lenora
|
|
|
Powered by
FUDForum. Page generated in 0.02438 seconds