- Timestamp:
- 2011-02-10T12:15:36+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r3876 r3886 77 77 dirs.add(a[1]); 78 78 } 79 } 80 String sourceDir = ref.source.getLocalSourceDir(); 81 if (sourceDir != null) { 82 dirs.add(sourceDir); 79 83 } 80 84 ImageIcon i = ImageProvider.getIfAvailable(dirs, "mappaint."+styleName, null, ref.iconName, ref.source.zipIcons, sanitize); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEntry.java
r3863 r3886 2 2 package org.openstreetmap.josm.gui.preferences; 3 3 4 import java.io.File; 4 5 import java.util.regex.Matcher; 5 6 import java.util.regex.Pattern; … … 122 123 return true; 123 124 } 125 126 public String getLocalSourceDir() { 127 if (!isLocal()) 128 return null; 129 File f = new File(url); 130 File dir = f.getParentFile(); 131 if (dir == null) 132 return null; 133 return dir.getPath(); 134 } 124 135 }
Note:
See TracChangeset
for help on using the changeset viewer.