Changeset 33876 in osm


Ignore:
Timestamp:
2017-11-22T00:44:00+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12643

Location:
applications/editors/josm/plugins/OpeningHoursEditor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OpeningHoursEditor/build.xml

    r32680 r33876  
    44    <property name="commit.message" value="fixed main version"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="10580"/>
     6    <property name="plugin.main.version" value="12643"/>
    77       
    88    <property name="plugin.author" value="Falko Thomale"/>
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java

    r32583 r33876  
    77
    88import org.openstreetmap.josm.Main;
     9import org.openstreetmap.josm.tools.Logging;
    910
    1011/**
     
    3031            midnight = localeFormat.format(stdFormat.parse("12:00 AM"));
    3132        } catch (ParseException ignore) {
    32             Main.trace(ignore);
     33            Logging.trace(ignore);
    3334        }
    3435        if (midnight.contains("12"))
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java

    r32583 r33876  
    4141import org.openstreetmap.josm.command.SequenceCommand;
    4242import org.openstreetmap.josm.data.osm.OsmPrimitive;
     43import org.openstreetmap.josm.gui.MainApplication;
    4344import org.openstreetmap.josm.gui.MainMenu;
    4445import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    7778    public OhePlugin(PluginInformation info) {
    7879        super(info);
    79         MainMenu.add(Main.main.menu.dataMenu, new OheMenuAction(), false, 0);
     80        MainMenu.add(MainApplication.getMenu().dataMenu, new OheMenuAction(), false, 0);
    8081    }
    8182
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java

    r32583 r33876  
    2727import org.openstreetmap.josm.plugins.ohe.parser.TokenMgrError;
    2828import org.openstreetmap.josm.tools.GBC;
     29import org.openstreetmap.josm.tools.Logging;
    2930
    3031public class OheDialogPanel extends JPanel {
     
    133134                time = OpeningTimeUtils.convert(compiler.startCompile());
    134135            } catch (Exception | TokenMgrError t) {
    135                 Main.warn(t);
     136                Logging.warn(t);
    136137               
    137138                int[] tColumns = null;
     
    153154                        }
    154155                    } catch (IndexOutOfBoundsException e) {
    155                         Main.warn(e);
     156                        Logging.warn(e);
    156157                    } catch (NumberFormatException e) {
    157                         Main.warn(e);
     158                        Logging.warn(e);
    158159                    }
    159160                }
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java

    r33185 r33876  
    2020import org.openstreetmap.josm.plugins.ohe.OpeningTimeUtils;
    2121import org.openstreetmap.josm.plugins.ohe.parser.OpeningTimeCompiler;
     22import org.openstreetmap.josm.tools.Logging;
    2223
    2324public class OheEditor extends JPanel implements MouseListener, MouseMotionListener {
     
    187188            time = dialog.getTime();
    188189        } catch (Exception exc) {
    189             Main.warn(exc, "Disable opening hours editor:");
     190            Logging.log(Logging.LEVEL_WARN, "Disable opening hours editor:", exc);
    190191            setEnabled(false);
    191192            return;
Note: See TracChangeset for help on using the changeset viewer.