Changeset 28091 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2012-03-15T20:29:01+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java
r28050 r28091 28 28 import java.util.Map; 29 29 30 import javax.swing.ImageIcon; 30 31 import javax.swing.JMenu; 31 32 import javax.swing.JMenuItem; … … 59 60 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleHandler; 60 61 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation; 62 import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils; 61 63 import org.openstreetmap.josm.tools.Pair; 62 64 -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/OdConstants.java
r28050 r28091 85 85 86 86 public static final String ICON_AGREEMENT_24 = "agreement24.png"; 87 public static final String ICON_EMPTY_24 = "empty24.png"; 87 88 88 89 /** -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java
r28087 r28091 154 154 } 155 155 156 protected final boolean acceptsKmzShpFilename(String filename, String ... expected) { 157 return acceptsFilename(filename, expected, KMZ_EXT, SHP_EXT); 158 } 159 156 160 protected final boolean acceptsKmzTabFilename(String filename, String ... expected) { 157 161 return acceptsFilename(filename, expected, KMZ_EXT, TAB_EXT); … … 169 173 return acceptsFilename(filename, expected, CSV_EXT, KMZ_EXT, TAB_EXT); 170 174 } 171 172 protected final boolean acceptsCsvKmzShpFilename(String filename, String ... expected) { 173 return acceptsFilename(filename, expected, CSV_EXT, KMZ_EXT, SHP_EXT); 174 } 175 175 176 176 protected final boolean acceptsCsvXlsFilename(String filename, String ... expected) { 177 177 return acceptsFilename(filename, expected, CSV_EXT, XLS_EXT); -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleInformation.java
r28017 r28091 40 40 import org.openstreetmap.josm.plugins.opendata.OdPlugin; 41 41 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 42 import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils; 42 43 import org.openstreetmap.josm.tools.ImageProvider; 43 44 import org.openstreetmap.josm.tools.LanguageInfo; … … 359 360 public ImageIcon getScaledIcon() { 360 361 if (icon == null) 361 return null;362 return OdUtils.getImageIcon(ICON_EMPTY_24); 362 363 return new ImageIcon(icon.getImage().getScaledInstance(24, 24, Image.SCALE_SMOOTH)); 363 364 }
Note:
See TracChangeset
for help on using the changeset viewer.