3637383940414243444546
try { prefDialog.setBlockOnOpen(false); prefDialog.open(); PreferencePage selectedPage = (PreferencePage)prefDialog.getSelectedPage(); selectedPage.performOk(); } finally { prefDialog.close(); } }