eclipse - Save WizardPage Settings with Java -
i created wizard wizardpage exporting files in folder. how can save last selected folder in wizard? if user opens wizard again, options selected last time should written in there.
you try following:
1. retrieve dialogsettings object. 2. find section. if null, create it. 3. use store/load related information. idialogsettings settings = workbenchplugin.getdefault().getdialogsettings(); idialogsettings section = settings.getsection("your_section_name"); if (section == null) { section = settings.addnewsection("your_section_name"); } string lastselectedfolder = section.get("your_last_selected_folder_key");
Comments
Post a Comment