Ignore:
Timestamp:
2012-03-15T20:29:01+01:00 (13 years ago)
Author:
donvip
Message:

opendata: Le Mans full data support

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  
    2828import java.util.Map;
    2929
     30import javax.swing.ImageIcon;
    3031import javax.swing.JMenu;
    3132import javax.swing.JMenuItem;
     
    5960import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleHandler;
    6061import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation;
     62import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils;
    6163import org.openstreetmap.josm.tools.Pair;
    6264
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/OdConstants.java

    r28050 r28091  
    8585
    8686        public static final String ICON_AGREEMENT_24 = "agreement24.png";
     87        public static final String ICON_EMPTY_24 = "empty24.png";
    8788
    8889    /**
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java

    r28087 r28091  
    154154        }
    155155
     156        protected final boolean acceptsKmzShpFilename(String filename, String ... expected) {
     157                return acceptsFilename(filename, expected, KMZ_EXT, SHP_EXT);
     158        }
     159
    156160        protected final boolean acceptsKmzTabFilename(String filename, String ... expected) {
    157161                return acceptsFilename(filename, expected, KMZ_EXT, TAB_EXT);
     
    169173                return acceptsFilename(filename, expected, CSV_EXT, KMZ_EXT, TAB_EXT);
    170174        }
    171        
    172         protected final boolean acceptsCsvKmzShpFilename(String filename, String ... expected) {
    173                 return acceptsFilename(filename, expected, CSV_EXT, KMZ_EXT, SHP_EXT);
    174         }
    175        
     175               
    176176        protected final boolean acceptsCsvXlsFilename(String filename, String ... expected) {
    177177                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  
    4040import org.openstreetmap.josm.plugins.opendata.OdPlugin;
    4141import org.openstreetmap.josm.plugins.opendata.core.OdConstants;
     42import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils;
    4243import org.openstreetmap.josm.tools.ImageProvider;
    4344import org.openstreetmap.josm.tools.LanguageInfo;
     
    359360    public ImageIcon getScaledIcon() {
    360361        if (icon == null)
    361             return null;
     362            return OdUtils.getImageIcon(ICON_EMPTY_24);
    362363        return new ImageIcon(icon.getImage().getScaledInstance(24, 24, Image.SCALE_SMOOTH));
    363364    }
Note: See TracChangeset for help on using the changeset viewer.