Ignore:
Timestamp:
2012-08-18T20:23:57+02:00 (12 years ago)
Author:
donvip
Message:

[josm_routing] fix a bunch of Exceptions (including #josm3011)

Location:
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingPlugin.java

    r28138 r28568  
    3030import static org.openstreetmap.josm.tools.I18n.tr;
    3131
     32import java.io.File;
    3233import java.util.ArrayList;
    3334
     
    138139                datasetAdapter = new DataSetListenerAdapter(this);
    139140                plugin = this; // Assign reference to the plugin class
    140                 if (new java.io.File("log4j.xml").exists()) {
    141                         DOMConfigurator.configure("log4j.xml");
     141                File log4jConfigFile = new java.io.File("log4j.xml");
     142                if (log4jConfigFile.exists()) {
     143                        DOMConfigurator.configure(log4jConfigFile.getPath());
    142144                } else {
    143145                        System.err.println("Routing plugin warning: log4j configuration not found");
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingMenu.java

    r28138 r28568  
    7272
    7373        /**
    74          * @param s
    7574         */
    7675        public RoutingMenu() {
     
    194193                clearMI.setEnabled(false);
    195194                criteriaM.setEnabled(false);
     195                regraphMI.setEnabled(false);
    196196        }
    197197
     
    204204                clearMI.setEnabled(true);
    205205                criteriaM.setEnabled(true);
     206                regraphMI.setEnabled(true);
    206207        }
    207208
     
    210211                clearMI.setEnabled(false);
    211212                criteriaM.setEnabled(false);
     213                regraphMI.setEnabled(false);
    212214        }
    213215}
Note: See TracChangeset for help on using the changeset viewer.