Changeset 100 in josm for src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
- Timestamp:
- 2006-04-28T01:32:03+02:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r98 r100 76 76 } 77 77 78 private static Icon icon;79 80 78 /** 81 79 * The data behind this layer. … … 107 105 public final LinkedList<ModifiedChangedListener> listenerModified = new LinkedList<ModifiedChangedListener>(); 108 106 public final LinkedList<CommandQueueListener> listenerCommands = new LinkedList<CommandQueueListener>(); 109 110 107 111 108 /** … … 123 120 */ 124 121 @Override public Icon getIcon() { 125 if (icon == null) 126 icon = ImageProvider.get("layer", "osmdata"); 127 return icon; 122 return ImageProvider.get("layer", "osmdata"); 128 123 } 129 124 … … 202 197 redoCommands.push(c); 203 198 //TODO: Replace with listener scheme 204 setModified(uploadedModified);199 setModified(uploadedModified); 205 200 Main.ds.clearSelection(); 206 201 fireCommandsChanged(); … … 255 250 256 251 public void fireCommandsChanged() { 257 for (final CommandQueueListener l : listenerCommands)252 for (final CommandQueueListener l : listenerCommands) 258 253 l.commandChanged(commands.size(), redoCommands.size()); 259 }254 } 260 255 261 256 /**
Note:
See TracChangeset
for help on using the changeset viewer.
