Index: /applications/editors/josm/plugins/seachartedit/build.xml
===================================================================
--- /applications/editors/josm/plugins/seachartedit/build.xml	(revision 33919)
+++ /applications/editors/josm/plugins/seachartedit/build.xml	(revision 33920)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="New release"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="10580"/>
+    <property name="plugin.main.version" value="12643"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/seachartedit/src/panels/PanelS57.java
===================================================================
--- /applications/editors/josm/plugins/seachartedit/src/panels/PanelS57.java	(revision 33919)
+++ /applications/editors/josm/plugins/seachartedit/src/panels/PanelS57.java	(revision 33920)
@@ -27,4 +27,5 @@
 import org.openstreetmap.josm.data.coor.LatLon;
 import org.openstreetmap.josm.data.osm.DataSet;
+import org.openstreetmap.josm.data.osm.DataSet.UploadPolicy;
 import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
@@ -33,4 +34,5 @@
 import org.openstreetmap.josm.data.osm.RelationMember;
 import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.gui.layer.OsmDataLayer;
 
@@ -72,5 +74,5 @@
         if (returnVal == JFileChooser.APPROVE_OPTION) {
             Main.pref.put("smed2plugin.typesfile", ifc.getSelectedFile().getPath());
-            Scanner tin = new Scanner(new FileInputStream(ifc.getSelectedFile()));
+            Scanner tin = new Scanner(new FileInputStream(ifc.getSelectedFile()), "UTF-8");
             while (tin.hasNext()) {
                 Obj type = S57obj.enumType(tin.next());
@@ -86,5 +88,5 @@
 
         DataSet data = new DataSet();
-        data.setUploadDiscouraged(true);
+        data.setUploadPolicy(UploadPolicy.DISCOURAGED);
 
         for (long id : map.index.keySet()) {
@@ -201,6 +203,6 @@
 
         OsmDataLayer layer = new OsmDataLayer(data, "S-57 Import", null);
-        Main.getLayerManager().addLayer(layer);
-        Main.map.mapView.zoomTo(new Bounds(Math.toDegrees(map.bounds.minlat), Math.toDegrees(map.bounds.minlon),
+        MainApplication.getLayerManager().addLayer(layer);
+        MainApplication.getMap().mapView.zoomTo(new Bounds(Math.toDegrees(map.bounds.minlat), Math.toDegrees(map.bounds.minlon),
                                            Math.toDegrees(map.bounds.maxlat), Math.toDegrees(map.bounds.maxlon)));
         PanelMain.setStatus("Import done", Color.green);
Index: /applications/editors/josm/plugins/seachartedit/src/scedit/SCedit.java
===================================================================
--- /applications/editors/josm/plugins/seachartedit/src/scedit/SCedit.java	(revision 33919)
+++ /applications/editors/josm/plugins/seachartedit/src/scedit/SCedit.java	(revision 33920)
@@ -10,5 +10,5 @@
 package scedit;
 
-import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.gui.MainMenu;
 import org.openstreetmap.josm.plugins.Plugin;
@@ -19,5 +19,5 @@
     public SCedit(PluginInformation info) {
         super(info);
-        MainMenu.add(Main.main.menu.toolsMenu, new SCeditAction());
+        MainMenu.add(MainApplication.getMenu().toolsMenu, new SCeditAction());
     }
 }
Index: /applications/editors/josm/plugins/seachartedit/src/scedit/SCeditAction.java
===================================================================
--- /applications/editors/josm/plugins/seachartedit/src/scedit/SCeditAction.java	(revision 33919)
+++ /applications/editors/josm/plugins/seachartedit/src/scedit/SCeditAction.java	(revision 33920)
@@ -22,5 +22,4 @@
 import javax.swing.WindowConstants;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.JosmAction;
 import org.openstreetmap.josm.data.Bounds;
@@ -152,5 +151,5 @@
         showFrame.setVisible(false);
 
-        Main.getLayerManager().addAndFireActiveLayerChangeListener(this);
+        getLayerManager().addAndFireActiveLayerChangeListener(this);
         DataSet.addSelectionListener(this);
     }
@@ -158,5 +157,5 @@
     public void closeDialog() {
         if (isOpen) {
-                Main.getLayerManager().removeActiveLayerChangeListener(this);
+                getLayerManager().removeActiveLayerChangeListener(this);
             editFrame.setVisible(false);
             editFrame.dispose();
@@ -172,5 +171,5 @@
             e.getPreviousEditLayer().data.removeDataSetListener(dataSetListener);
         }
-        OsmDataLayer newLayer = Main.getLayerManager().getEditLayer();
+        OsmDataLayer newLayer = getLayerManager().getEditLayer();
         if (newLayer != null) {
             newLayer.data.addDataSetListener(dataSetListener);
