- Timestamp:
- 2018-11-03T22:09:03+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r14121 r14410 393 393 public void actionPerformed(ActionEvent evt) { 394 394 Window parent = GuiHelper.getWindowAncestorFor(evt); 395 if (!GraphicsEnvironment.isHeadless()) { 396 ChangesetQueryDialog dialog = new ChangesetQueryDialog(parent); 397 dialog.initForUserInput(); 398 dialog.setVisible(true); 399 if (dialog.isCanceled()) 400 return; 401 402 try { 403 ChangesetQuery query = dialog.getChangesetQuery(); 404 if (query != null) { 405 ChangesetCacheManager.getInstance().runDownloadTask(new ChangesetQueryTask(parent, query)); 406 } 407 } catch (IllegalStateException e) { 408 Logging.error(e); 409 JOptionPane.showMessageDialog(parent, e.getMessage(), tr("Error"), JOptionPane.ERROR_MESSAGE); 395 ChangesetQueryDialog dialog = new ChangesetQueryDialog(parent); 396 dialog.initForUserInput(); 397 dialog.setVisible(true); 398 if (dialog.isCanceled()) 399 return; 400 401 try { 402 ChangesetQuery query = dialog.getChangesetQuery(); 403 if (query != null) { 404 ChangesetCacheManager.getInstance().runDownloadTask(new ChangesetQueryTask(parent, query)); 410 405 } 406 } catch (IllegalStateException e) { 407 Logging.error(e); 408 JOptionPane.showMessageDialog(parent, e.getMessage(), tr("Error"), JOptionPane.ERROR_MESSAGE); 411 409 } 412 410 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryDialog.java
r12678 r14410 73 73 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 74 74 75 pnl.add(new JButton(new QueryAction())); 76 pnl.add(new JButton(new CancelAction())); 75 final JButton queryButton = new JButton(new QueryAction()); 76 queryButton.setName("queryButton"); 77 pnl.add(queryButton); 78 final JButton cancelButton = new JButton(new CancelAction()); 79 cancelButton.setName("cancelButton"); 80 pnl.add(cancelButton); 77 81 pnl.add(new JButton(new ContextSensitiveHelpAction(HelpUtil.ht("/Dialog/ChangesetQuery")))); 78 82
Note:
See TracChangeset
for help on using the changeset viewer.