Changeset 2135 in josm for trunk/src/org
- Timestamp:
 - 2009-09-14T21:24:54+02:00 (16 years ago)
 - Location:
 - trunk/src/org/openstreetmap/josm
 - Files:
 - 
      
- 4 edited
 
- 
          
  gui/ExtendedDialog.java (modified) (1 diff)
 - 
          
  gui/io/DownloadOpenChangesetsTask.java (modified) (1 diff)
 - 
          
  gui/io/UploadDialog.java (modified) (3 diffs)
 - 
          
  io/OsmApi.java (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r2083 r2135 4 4 5 5 import java.awt.Component; 6 import java.awt.Container;7 6 import java.awt.Dimension; 8 import java.awt.Frame;9 7 import java.awt.GridBagLayout; 10 8 import java.awt.Toolkit;  - 
      
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r2115 r2135 24 24 * This is a task for downloading the open changesets of the current user 25 25 * from the OSM server. 26 27 26 * 28 27 */  - 
      
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r2115 r2135 864 864 } 865 865 866 /** 867 * Refreshes the list of open changesets 868 * 869 */ 866 870 class RefreshAction extends AbstractAction { 867 871 public RefreshAction() { … … 941 945 } 942 946 947 /** 948 * Updates the current list of open changesets with the changesets 949 * in <code>changesets</code> 950 * 951 * @param changesets the collection of changesets. If null, removes 952 * all changesets from the current list of changesets 953 */ 943 954 public void addOrUpdate(Collection<Changeset> changesets) { 955 if (changesets == null){ 956 this.changesets.clear(); 957 setSelectedItem(null); 958 } 944 959 for (Changeset cs: changesets) { 945 960 internalAddOrUpdate(cs); … … 948 963 if (getSelectedItem() == null && !this.changesets.isEmpty()) { 949 964 setSelectedItem(this.changesets.get(0)); 965 } else if (getSelectedItem() != null) { 966 if (changesets.contains(getSelectedItem())) { 967 setSelectedItem(getSelectedItem()); 968 } else { 969 setSelectedItem(this.changesets.get(0)); 970 } 950 971 } else { 951 972 setSelectedItem(null);  - 
      
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r2115 r2135 355 355 sendRequest( 356 356 "PUT", 357 "changeset/" + this.changeset.getId(),358 toXml( this.changeset),357 "changeset/" + changeset.getId(), 358 toXml(changeset), 359 359 monitor 360 360 );  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  