Changeset 2915 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
- Timestamp:
- 2010-01-31T18:15:15+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentDownloadTask.java
r2847 r2915 116 116 * id <code>changesetId</code>. 117 117 * 118 * @param chang setId the changeset id118 * @param changesetId the changeset id 119 119 * @return true if the local {@see ChangesetCache} already includes the changeset with 120 120 * id <code>changesetId</code> 121 121 */ 122 protected boolean isAvailableLocally(int chang setId) {123 return ChangesetCache.getInstance().get(chang setId) != null;122 protected boolean isAvailableLocally(int changesetId) { 123 return ChangesetCache.getInstance().get(changesetId) != null; 124 124 } 125 125 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/SingleChangesetDownloadPanel.java
r2847 r2915 30 30 public class SingleChangesetDownloadPanel extends JPanel { 31 31 32 private JTextField tfChang setId;32 private JTextField tfChangesetId; 33 33 private DownloadAction actDownload; 34 34 private ChangesetIdValidator valChangesetId; … … 44 44 45 45 add(new JLabel(tr("Changeset ID: "))); 46 add(tfChang setId = new JTextField(10));47 tfChang setId.setToolTipText(tr("Enter a changset id"));48 valChangesetId =ChangesetIdValidator.decorate(tfChang setId);49 SelectAllOnFocusGainedDecorator.decorate(tfChang setId);46 add(tfChangesetId = new JTextField(10)); 47 tfChangesetId.setToolTipText(tr("Enter a changeset id")); 48 valChangesetId =ChangesetIdValidator.decorate(tfChangesetId); 49 SelectAllOnFocusGainedDecorator.decorate(tfChangesetId); 50 50 51 51 actDownload = new DownloadAction(); 52 52 SideButton btn = new SideButton(actDownload); 53 tfChang setId.addActionListener(actDownload);54 tfChang setId.getDocument().addDocumentListener(actDownload);53 tfChangesetId.addActionListener(actDownload); 54 tfChangesetId.getDocument().addDocumentListener(actDownload); 55 55 add(btn); 56 56 } … … 66 66 * @return the changeset id entered in this panel 67 67 */ 68 public int getChang setId() {68 public int getChangesetId() { 69 69 return valChangesetId.getChangesetId(); 70 70 } … … 84 84 if (!isEnabled()) 85 85 return; 86 int id = getChang setId();86 int id = getChangesetId(); 87 87 if (id == 0) return; 88 88 ChangesetContentDownloadTask task = new ChangesetContentDownloadTask( … … 94 94 95 95 protected void updateEnabledState() { 96 String v = tfChang setId.getText();96 String v = tfChangesetId.getText(); 97 97 if (v == null || v.trim().length() == 0) { 98 98 setEnabled(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/BasicChangesetQueryPanel.java
r2801 r2915 107 107 gc.weightx = 1.0; 108 108 pnl.add(cbMyChangesetsOnly = new JCheckBox(tr("Download my changesets only")), gc); 109 cbMyChangesetsOnly.setToolTipText(tr("<html>Select to restrict the query to your chang sets only.<br>Unselect to include all changesets in the query.</html>"));109 cbMyChangesetsOnly.setToolTipText(tr("<html>Select to restrict the query to your changesets only.<br>Unselect to include all changesets in the query.</html>")); 110 110 111 111 // grab remaining space -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryTask.java
r2801 r2915 38 38 /** true if the task was canceled */ 39 39 private boolean canceled; 40 /** the set of downloaded chang sets */40 /** the set of downloaded changesets */ 41 41 private Set<Changeset> downloadedChangesets; 42 42 /** the last exception remembered, if any */
Note:
See TracChangeset
for help on using the changeset viewer.