Changeset 5219 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2012-05-07T15:05:27+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/LineTextElemStyle.java
r5217 r5219 50 50 return text.hashCode(); 51 51 } 52 53 @Override 54 public String toString() { 55 return "LineTextElemStyle{" + super.toString() + "text=" + text + "}"; 56 } 57 52 58 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r5054 r5219 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.io.File; 6 7 import java.io.IOException; 7 8 import java.io.InputStream; … … 21 22 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource; 22 23 import org.openstreetmap.josm.gui.mappaint.xml.XmlStyleSource; 24 import org.openstreetmap.josm.gui.preferences.SourceEntry; 23 25 import org.openstreetmap.josm.gui.preferences.map.MapPaintPreference.MapPaintPrefHelper; 24 import org.openstreetmap.josm.gui.preferences.SourceEntry;25 26 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 26 27 import org.openstreetmap.josm.io.MirroredInputStream; … … 165 166 for (StyleSource source : styles.getStyleSources()) { 166 167 source.loadStyleSource(); 167 } 168 168 if (Main.pref.getBoolean("mappaint.auto_reload_local_styles", true)) { 169 if (source.isLocal()) { 170 File f = new File(source.url); 171 source.setLastMTime(f.lastModified()); 172 } 173 } 174 } 169 175 fireMapPaintSylesUpdated(); 170 176 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
r4820 r5219 26 26 27 27 private ImageIcon imageIcon; 28 private long lastMTime = 0l; 28 29 29 30 /****** … … 31 32 * of the source file. 32 33 */ 33 34 34 35 public String icon; 35 36 … … 104 105 return null; 105 106 } 107 108 public long getLastMTime() { 109 return lastMTime; 110 } 111 112 public void setLastMTime(long lastMTime) { 113 this.lastMTime = lastMTime; 114 } 115 116 106 117 }
Note:
See TracChangeset
for help on using the changeset viewer.