Changeset 33876 in osm for applications
- Timestamp:
- 2017-11-22T00:44:00+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/OpeningHoursEditor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/build.xml
r32680 r33876 4 4 <property name="commit.message" value="fixed main version"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 0580"/>6 <property name="plugin.main.version" value="12643"/> 7 7 8 8 <property name="plugin.author" value="Falko Thomale"/> -
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java
r32583 r33876 7 7 8 8 import org.openstreetmap.josm.Main; 9 import org.openstreetmap.josm.tools.Logging; 9 10 10 11 /** … … 30 31 midnight = localeFormat.format(stdFormat.parse("12:00 AM")); 31 32 } catch (ParseException ignore) { 32 Main.trace(ignore);33 Logging.trace(ignore); 33 34 } 34 35 if (midnight.contains("12")) -
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java
r32583 r33876 41 41 import org.openstreetmap.josm.command.SequenceCommand; 42 42 import org.openstreetmap.josm.data.osm.OsmPrimitive; 43 import org.openstreetmap.josm.gui.MainApplication; 43 44 import org.openstreetmap.josm.gui.MainMenu; 44 45 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 77 78 public OhePlugin(PluginInformation info) { 78 79 super(info); 79 MainMenu.add(Main .main.menu.dataMenu, new OheMenuAction(), false, 0);80 MainMenu.add(MainApplication.getMenu().dataMenu, new OheMenuAction(), false, 0); 80 81 } 81 82 -
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java
r32583 r33876 27 27 import org.openstreetmap.josm.plugins.ohe.parser.TokenMgrError; 28 28 import org.openstreetmap.josm.tools.GBC; 29 import org.openstreetmap.josm.tools.Logging; 29 30 30 31 public class OheDialogPanel extends JPanel { … … 133 134 time = OpeningTimeUtils.convert(compiler.startCompile()); 134 135 } catch (Exception | TokenMgrError t) { 135 Main.warn(t);136 Logging.warn(t); 136 137 137 138 int[] tColumns = null; … … 153 154 } 154 155 } catch (IndexOutOfBoundsException e) { 155 Main.warn(e);156 Logging.warn(e); 156 157 } catch (NumberFormatException e) { 157 Main.warn(e);158 Logging.warn(e); 158 159 } 159 160 } -
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java
r33185 r33876 20 20 import org.openstreetmap.josm.plugins.ohe.OpeningTimeUtils; 21 21 import org.openstreetmap.josm.plugins.ohe.parser.OpeningTimeCompiler; 22 import org.openstreetmap.josm.tools.Logging; 22 23 23 24 public class OheEditor extends JPanel implements MouseListener, MouseMotionListener { … … 187 188 time = dialog.getTime(); 188 189 } catch (Exception exc) { 189 Main.warn(exc, "Disable opening hours editor:");190 Logging.log(Logging.LEVEL_WARN, "Disable opening hours editor:", exc); 190 191 setEnabled(false); 191 192 return;
Note:
See TracChangeset
for help on using the changeset viewer.