Changeset 12588 in osm for applications/editors/josm/plugins/pluginmanager/src
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/PluginManagerPreference.java
r3335 r12588 50 50 private JList siteList; 51 51 private DefaultListModel siteListModel; 52 52 private boolean requiresRestart = false; 53 53 54 protected DefaultListModel createListModel() { 54 55 Map<String, String> sites = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX); … … 103 104 return; 104 105 } 105 gui.requiresRestart = gui.requiresRestart || false;106 106 } 107 107 }); … … 117 117 siteListModel.removeElementAt(selected[i]); 118 118 } 119 gui.requiresRestart = gui.requiresRestart || false;120 119 } 121 120 } … … 142 141 PluginUpdateFrame frame = new PluginUpdateFrame(tr("Plugins"), descriptions); 143 142 frame.setVisible(true); 144 gui.requiresRestart = true;143 requiresRestart = true; 145 144 } 146 145 } … … 167 166 * @see org.openstreetmap.josm.gui.preferences.PreferenceSetting#ok() 168 167 */ 169 // only in 1.6 allowed @Override 170 public void ok() { 168 public boolean ok() { 171 169 // first remove all old entries: 172 170 Map<String, String> keys = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX); … … 189 187 } 190 188 } 189 return requiresRestart; 191 190 } 192 193 191 }
Note:
See TracChangeset
for help on using the changeset viewer.