java - How to provide a preference settings for long running jobs in RCP? -


i facing issue long running job in rcp application .on starting job have progressbar 3 buttons , 1 checkbox .and if user checked checkbox , pressed run in background progressbar dialog not coming back. tried use preference page user can check , unchecked settings .but learnt have use internal things workbenchplugin.platformui.getpreferencestore().setvalue( ipreferenceconstants.run_in_background, false );

and according practice should not .so there better way or there way remove run in background checkbox progressbar dilaog.

any on appreciated .

you can without using internal classes with:

ipersistentpreferencestore store = new scopedpreferencestore(instancescope.instance, "org.eclipse.ui.workbench");  store.setvalue("run_in_background", false);  store.save(); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -