Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » DialogSettings
DialogSettings [message #145681] Fri, 17 October 2003 09:28 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:classpath when loading resource bundle
Next Topic:Custom Editor
Goto Forum:
  


Current Time: Fri Apr 25 22:14:49 EDT 2025

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

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

Back to the top