Changeset 8468 in josm for trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java
- Timestamp:
- 2015-06-06T01:48:41+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java
r8443 r8468 36 36 37 37 /** (preference key => return value) mappings valid for the current operation (no, those two maps cannot be combined) */ 38 pr otectedstatic final Map<String, Integer> sessionChoices = new HashMap<>();38 private static final Map<String, Integer> sessionChoices = new HashMap<>(); 39 39 /** (preference key => return value) mappings valid for the current session */ 40 pr otectedstatic final Map<String, Integer> immediateChoices = new HashMap<>();40 private static final Map<String, Integer> immediateChoices = new HashMap<>(); 41 41 /** a set indication that (preference key) is or may be stored for the currently active bulk operation */ 42 pr otectedstatic final Set<String> immediateActive = new HashSet<>();42 private static final Set<String> immediateActive = new HashSet<>(); 43 43 44 44 /** … … 243 243 244 244 /** 245 * This is a message panel used in dialogs which can be enabled/disabled with a preference 246 * setting. 245 * This is a message panel used in dialogs which can be enabled/disabled with a preference setting. 247 246 * In addition to the normal message any {@link JOptionPane} would display it includes 248 247 * a checkbox for enabling/disabling this particular dialog. … … 250 249 */ 251 250 static class MessagePanel extends JPanel { 252 private final ButtonGroup group = new ButtonGroup();253 251 private final JRadioButton cbShowPermanentDialog = new JRadioButton(NotShowAgain.PERMANENT.getLabel()); 254 252 private final JRadioButton cbShowSessionDialog = new JRadioButton(NotShowAgain.SESSION.getLabel()); … … 258 256 /** 259 257 * Constructs a new panel. 260 * @param message the the message (null to add no message, Component instances are added directly, otherwise a JLabel with the string representation is added) 258 * @param message the the message (null to add no message, Component instances are added directly, 259 * otherwise a JLabel with the string representation is added) 261 260 * @param displayImmediateOption whether to provide "Do not show again (this session)" 262 261 */ 263 262 public MessagePanel(Object message, boolean displayImmediateOption) { 264 263 cbStandard.setSelected(true); 264 ButtonGroup group = new ButtonGroup(); 265 265 group.add(cbShowPermanentDialog); 266 266 group.add(cbShowSessionDialog);
Note:
See TracChangeset
for help on using the changeset viewer.