Ignore:
Timestamp:
2011-06-26T13:43:35+02:00 (13 years ago)
Author:
stoecker
Message:

remove unused icons, make connection timouts configurable and increase them a bit to handle JOSM server delays

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java

    r4143 r4172  
    7070    Map_Rectifier_WMSmenuAction rectaction = new Map_Rectifier_WMSmenuAction();
    7171    JosmAction blankmenu = new JosmAction(
    72             tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), null, false) {
     72            tr("Blank Layer"), /* ICON */"blankmenu", tr("Open a blank WMS layer to load data from a file"), null, false) {
    7373        @Override
    7474        public void actionPerformed(ActionEvent ev) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r4141 r4172  
    11581158                            for (URI u : uris) {
    11591159                                conn = (HttpURLConnection) u.toURL().openConnection();
    1160                                 conn.setConnectTimeout(5000);
     1160                                conn.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect",15)*1000);
    11611161
    11621162                                if (conn.getResponseCode() != 200) {
     
    11711171                                            .replaceFirst("/wiki/", "/w/index.php?redirect=no&title=")
    11721172                                    ).toURL().openConnection();
    1173                                     conn.setConnectTimeout(5000);
     1173                                    conn.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect",15)*1000);
    11741174
    11751175                                    /* redirect pages have different content length, but retrieving a "nonredirect"
  • trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java

    r3719 r4172  
    365365                    connection = (HttpURLConnection)url.openConnection();
    366366                }
    367                 connection.setConnectTimeout(15000);
     367                connection.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect",15)*1000);
    368368                InputStream inputStream = connection.getInputStream();
    369369                InputSource inputSource = new InputSource(new InputStreamReader(inputStream, "UTF-8"));
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java

    r4135 r4172  
    179179        this.offset = offset;
    180180        this.time = time;
     181        // /* ICON(markers/) */"Bridge"
     182        // /* ICON(markers/) */"Crossing"
    181183        this.symbol = ImageProvider.getIfAvailable("markers",iconName);
    182184        this.parentLayer = parentLayer;
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r4007 r4172  
    8484        if(i == null)
    8585        {
    86             System.out.println("Mappaint style \""+namespace+"\" icon \"" + ref.iconName + "\" not found.");
     86            System.out.println("Mappaint style \""+namespace+"\" ("+ref.source.getDisplayString()+") icon \"" + ref.iconName + "\" not found.");
    8787            return null;
    8888        }
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r4170 r4172  
    8888
    8989    public enum PresetType {
    90         NODE("Mf_node"), WAY("Mf_way"), RELATION("Mf_relation"), CLOSEDWAY("Mf_closedway");
     90        NODE(/* ICON */"Mf_node"), WAY(/* ICON */"Mf_way"), RELATION(/* ICON */"Mf_relation"), CLOSEDWAY(/* ICON */"Mf_closedway");
    9191
    9292        private final String iconName;
Note: See TracChangeset for help on using the changeset viewer.