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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -