Changeset 6084 in josm for trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
- Timestamp:
- 2013-07-26T13:38:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
r6070 r6084 113 113 } 114 114 115 @Override 115 116 public void actionPerformed(ActionEvent e) { 116 117 pane.setValue(value); … … 168 169 HelpUtil.setHelpContext(b, helpTopic); 169 170 Action a = new AbstractAction() { 171 @Override 170 172 public void actionPerformed(ActionEvent e) { 171 173 HelpBrowser.setUrlForHelpTopic(helpTopic); … … 271 273 dialog.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0), "close"); 272 274 dialog.getRootPane().getActionMap().put("close", new AbstractAction() { 275 @Override 273 276 public void actionPerformed(ActionEvent e) { 274 277 pane.setValue(JOptionPane.CLOSED_OPTION); … … 324 327 static public void showMessageDialogInEDT(final Component parentComponent, final Object msg, final String title, final int messageType, final String helpTopic) { 325 328 GuiHelper.runInEDT(new Runnable() { 329 @Override 326 330 public void run() { 327 331 showOptionDialog(parentComponent, msg, title, messageType, null, null, null, helpTopic);
Note:
See TracChangeset
for help on using the changeset viewer.