Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
r8509 r8510 66 66 gc.anchor = GridBagConstraints.NORTHWEST; 67 67 gc.fill = GridBagConstraints.HORIZONTAL; 68 gc.weightx =1.0;68 gc.weightx = 1.0; 69 69 70 70 ButtonGroup bgVersionBasedUpdatePolicy = new ButtonGroup(); … … 84 84 JMultilineLabel lbl = new JMultilineLabel( 85 85 tr("Please decide whether JOSM shall automatically update active plugins at startup after an update of JOSM itself.")); 86 gc.gridy =0;86 gc.gridy = 0; 87 87 pnl.add(lbl, gc); 88 88 for (Policy p: Policy.values()) { … … 107 107 gc.anchor = GridBagConstraints.NORTHWEST; 108 108 gc.fill = GridBagConstraints.HORIZONTAL; 109 gc.weightx =1.0;109 gc.weightx = 1.0; 110 110 111 111 TimeBasedPolicyChangeListener changeListener = new TimeBasedPolicyChangeListener(); … … 130 130 JMultilineLabel lbl = new JMultilineLabel( 131 131 tr("Please decide whether JOSM shall automatically update active plugins after a certain period of time.")); 132 gc.gridy =0;132 gc.gridy = 0; 133 133 pnl.add(lbl, gc); 134 134 for (Policy p: Policy.values()) { … … 146 146 gc.anchor = GridBagConstraints.NORTHWEST; 147 147 gc.fill = GridBagConstraints.HORIZONTAL; 148 gc.weightx =1.0;149 gc.insets = new Insets(5, 5,10,5);148 gc.weightx = 1.0; 149 gc.insets = new Insets(5, 5, 10, 5); 150 150 151 151 add(buildVersionBasedUpdatePolicyPanel(), gc); … … 194 194 try { 195 195 days = Integer.parseInt(pref); 196 } catch (NumberFormatException e) {196 } catch (NumberFormatException e) { 197 197 // ignore - load from preference pluginmanager.time-based-update.interval 198 198 } … … 238 238 days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL; 239 239 } 240 } catch (NumberFormatException e) {240 } catch (NumberFormatException e) { 241 241 days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL; 242 242 }
Note:
See TracChangeset
for help on using the changeset viewer.