- Timestamp:
- 2016-10-09T13:47:44+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r10627 r11110 5 5 6 6 import java.awt.Component; 7 import java.awt.GraphicsEnvironment; 7 8 import java.io.IOException; 9 import java.util.Collections; 8 10 import java.util.List; 9 11 … … 59 61 protected void finish() { 60 62 if (JosmUserIdentityManager.getInstance().isAnonymous()) { 61 JOptionPane.showMessageDialog( 62 GuiHelper.getFrameForComponent(parent), 63 "<html>" + tr("Could not retrieve the list of your open changesets because<br>" 64 + "JOSM does not know your identity.<br>" 65 + "You have either chosen to work anonymously or you are not entitled<br>" 66 + "to know the identity of the user on whose behalf you are working.") 67 + "</html>", 68 tr("Missing user identity"), 69 JOptionPane.ERROR_MESSAGE 70 ); 63 String msg = tr("Could not retrieve the list of your open changesets because<br>" 64 + "JOSM does not know your identity.<br>" 65 + "You have either chosen to work anonymously or you are not entitled<br>" 66 + "to know the identity of the user on whose behalf you are working."); 67 Main.warn(msg); 68 if (!GraphicsEnvironment.isHeadless()) { 69 JOptionPane.showMessageDialog(GuiHelper.getFrameForComponent(parent), 70 "<html>" + msg + "</html>", tr("Missing user identity"), JOptionPane.ERROR_MESSAGE); 71 } 71 72 return; 72 73 } … … 153 154 } 154 155 156 /** 157 * Determines if this task has been cancelled. 158 * @return {@code true} if this task has been cancelled 159 */ 155 160 public boolean isCanceled() { 156 161 return canceled; 157 162 } 163 164 /** 165 * Returns the changesets. 166 * @return the changesets, or {@code null} 167 * @since 11110 168 */ 169 public final List<Changeset> getChangesets() { 170 return changesets != null ? Collections.unmodifiableList(changesets) : null; 171 } 158 172 } -
trunk/src/org/openstreetmap/josm/io/OsmServerChangesetReader.java
r10242 r11110 58 58 * @return the list of changesets read from the server 59 59 * @throws IllegalArgumentException if query is null 60 * @throws OsmTransferException if something goes wrong w60 * @throws OsmTransferException if something goes wrong 61 61 */ 62 62 public List<Changeset> queryChangesets(ChangesetQuery query, ProgressMonitor monitor) throws OsmTransferException {
Note:
See TracChangeset
for help on using the changeset viewer.