@Override public void run() { // set the currently displayed map provider so that this mp will be selected in the pref page final IPreferenceStore prefStore = TourbookPlugin.getDefault().getPreferenceStore(); prefStore.setValue( // IMappingPreferences.MAP_FACTORY_LAST_SELECTED_MAP_PROVIDER, _tourMapView.getMap().getMapProvider().getId()); PreferencesUtil.createPreferenceDialogOn( Display.getCurrent().getActiveShell(), PrefPageMapProviders.PREF_PAGE_MAP_PROVIDER_ID, null, null) .open(); }
@Override public void run() { fMapView.actionSaveDefaultPosition(); }