Index: applications/editors/josm/plugins/OpeningHoursEditor/build.xml
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/build.xml	(revision 34534)
+++ applications/editors/josm/plugins/OpeningHoursEditor/build.xml	(revision 34535)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="fixed main version"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="12643"/>
+    <property name="plugin.main.version" value="14153"/>
 	
     <property name="plugin.author" value="Falko Thomale"/>
Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java	(revision 34534)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/ClockSystem.java	(revision 34535)
@@ -6,5 +6,4 @@
 import java.util.Locale;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.tools.Logging;
 
Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java	(revision 34534)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java	(revision 34535)
@@ -35,9 +35,9 @@
 import javax.swing.table.DefaultTableModel;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.JosmAction;
 import org.openstreetmap.josm.command.ChangePropertyCommand;
 import org.openstreetmap.josm.command.Command;
 import org.openstreetmap.josm.command.SequenceCommand;
+import org.openstreetmap.josm.data.UndoRedoHandler;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.gui.MainApplication;
@@ -47,4 +47,5 @@
 import org.openstreetmap.josm.plugins.PluginInformation;
 import org.openstreetmap.josm.plugins.ohe.gui.OheDialogPanel;
+import org.openstreetmap.josm.spi.preferences.Config;
 import org.openstreetmap.josm.tools.GBC;
 import org.openstreetmap.josm.tools.Shortcut;
@@ -57,5 +58,5 @@
     /**
      * Strings for choosing which key of an object with given tags should be
-     * edited, the order is referencing the preference of the keys, String[] ->
+     * edited, the order is referencing the preference of the keys, String[] -&gt;
      * {key, value, key-to-edit} key and value can contain regular expressions
      */
@@ -260,5 +261,5 @@
 
             // load the preference for the clocksystem (12h/24h)
-            ClockSystem clockSystem = ClockSystem.valueOf(Main.pref.get("ohe.clocksystem",
+            ClockSystem clockSystem = ClockSystem.valueOf(Config.getPref().get("ohe.clocksystem",
                     ClockSystem.getClockSystem(Locale.getDefault()).toString()));
 
@@ -275,5 +276,5 @@
             JOptionPane optionPane = new JOptionPane(dlgPanel, JOptionPane.QUESTION_MESSAGE,
                     JOptionPane.OK_CANCEL_OPTION);
-            JDialog dlg = optionPane.createDialog(Main.parent, tr("Choose key"));
+            JDialog dlg = optionPane.createDialog(MainApplication.getMainFrame(), tr("Choose key"));
             dlg.pack();
             dlg.setResizable(true);
@@ -295,5 +296,5 @@
 
             // save the value for the clocksystem (12h/24h)
-            Main.pref.put("ohe.clocksystem", (useTwelveHourClock.isSelected() ? ClockSystem.TWELVE_HOURS
+            Config.getPref().put("ohe.clocksystem", (useTwelveHourClock.isSelected() ? ClockSystem.TWELVE_HOURS
                     : ClockSystem.TWENTYFOUR_HOURS).toString());
 
@@ -302,5 +303,5 @@
 
             optionPane = new JOptionPane(panel, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
-            dlg = optionPane.createDialog(Main.parent, tr("Edit"));
+            dlg = optionPane.createDialog(MainApplication.getMainFrame(), tr("Edit"));
             dlg.setResizable(true);
             dlg.setVisible(true);
@@ -328,5 +329,5 @@
                 return;
             if (key.equals(newkey) || value == null) {
-                Main.main.undoRedo.add(new ChangePropertyCommand(selection, newkey, value));
+                UndoRedoHandler.getInstance().add(new ChangePropertyCommand(selection, newkey, value));
             } else {
                 Collection<Command> commands = new Vector<>();
@@ -352,5 +353,5 @@
                     commands.add(new ChangePropertyCommand(selection, newkey, value));
                 }
-                Main.main.undoRedo.add(new SequenceCommand(trn("Change properties of up to {0} object",
+                UndoRedoHandler.getInstance().add(new SequenceCommand(trn("Change properties of up to {0} object",
                         "Change properties of up to {0} objects", selection.size(), selection.size()), commands));
             }
Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java	(revision 34534)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheDialogPanel.java	(revision 34535)
@@ -18,5 +18,4 @@
 import javax.swing.JTextField;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.plugins.ohe.ClockSystem;
 import org.openstreetmap.josm.plugins.ohe.OhePlugin;
Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java	(revision 34534)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java	(revision 34535)
@@ -16,5 +16,4 @@
 import javax.swing.JScrollPane;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.plugins.ohe.ClockSystem;
 import org.openstreetmap.josm.plugins.ohe.OpeningTimeUtils;
