putValue(SHORT_DESCRIPTION, tr("Launch the dialog for querying changesets"));
}
@Override
public void actionPerformed(ActionEvent evt) {
ChangesetQueryDialog dialog = new ChangesetQueryDialog(ChangesetCacheManager.this);
dialog.initForUserInput();
dialog.setVisible(true);
if (dialog.isCanceled())
return;
try {
ChangesetQuery query = dialog.getChangesetQuery();
if (query == null) return;
ChangesetQueryTask task = new ChangesetQueryTask(ChangesetCacheManager.this, query);
ChangesetCacheManager.getInstance().runDownloadTask(task);
} catch (IllegalStateException e) {
JOptionPane.showMessageDialog(ChangesetCacheManager.this, e.getMessage(), tr("Error"), JOptionPane.ERROR_MESSAGE);