Index: applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java
===================================================================
--- applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java	(revision 27941)
+++ applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java	(revision 27943)
@@ -23,5 +23,5 @@
 public class SmedTabAction extends JosmAction {
 
-    /**
+	/**
      *
      */
@@ -31,76 +31,71 @@
 	private JFrame frame = null;
 	private boolean isOpen = false;
-	private JMenuItem osmItem =null;
+	private JMenuItem osmItem = null;
 	public static JTextField smedStatusBar = null;
-	private static String editor =tr("SeaMap Editor");
-	
-    public SmedTabAction() {
-        super( editor, "Smed",editor, 
-	    Shortcut.registerShortcut("tools:Seamaps", tr("Tool: {0}", tr("SeaMap Editor")),
-	    KeyEvent.VK_K, Shortcut.SHIFT),
-	    true);  //$NON-NLS-1$ //$NON-NLS-2$
-    }
+	private static String editor = tr("SeaMap Editor");
 
+	public SmedTabAction() {
+//        super( editor, "Smed",editor, Shortcut.registerShortcut("tools:Seamaps", tr("Tool: {0}", tr("SeaMap Editor")), KeyEvent.VK_K, Shortcut.SHIFT), true);  //$NON-NLS-1$ //$NON-NLS-2$
+	}
 
-    @Override
-    public void actionPerformed(ActionEvent e) {
-        SwingUtilities.invokeLater(new Runnable() {
-            public void run() {
-                createAndShowTabs();
-            }
-        });
-        
-        isOpen = true;
-		if (osmItem == null) return;
+	@Override
+	public void actionPerformed(ActionEvent e) {
+		SwingUtilities.invokeLater(new Runnable() {
+			public void run() {
+				createAndShowTabs();
+			}
+		});
+
+		isOpen = true;
+		if (osmItem == null)
+			return;
 
 		osmItem.setEnabled(false);
-    }
+	}
 
+	protected void createAndShowTabs() {
+		// Create and set up the window.
+		frame = new JFrame(editor);
+		smedStatusBar = new JTextField();
+		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
+		frame.setResizable(false);
+		frame.setAlwaysOnTop(true);
 
-    protected void createAndShowTabs() {
-        //Create and set up the window.
-        frame = new JFrame(editor);
-        smedStatusBar = new JTextField();
-        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
-        frame.setResizable(false);
-        frame.setAlwaysOnTop(true);
+		// Add content to the window.
+		frame.setJMenuBar(smedMenu);
+		frame.add(smedTabs, BorderLayout.CENTER);
+		frame.add(smedStatusBar, BorderLayout.PAGE_END);
 
-        //Add content to the window.
-        frame.setJMenuBar(smedMenu);
-        frame.add(smedTabs, BorderLayout.CENTER);
-        frame.add(smedStatusBar,BorderLayout.PAGE_END);
+		// Display the window.
+		frame.addWindowListener(new java.awt.event.WindowAdapter() {
+			public void windowClosing(java.awt.event.WindowEvent e) {
+				osmItem.setEnabled(true);
 
-        //Display the window.
-        frame.addWindowListener(new java.awt.event.WindowAdapter() {
-        	public void windowClosing(java.awt.event.WindowEvent e) {
-        		osmItem.setEnabled(true);
-        		
-        		closeDialog();
-        	}
-        });
-        frame.setSize(new Dimension(420, 470));
-        // frame.pack();
-        frame.setVisible(true);
-    }
-
+				closeDialog();
+			}
+		});
+		frame.setSize(new Dimension(420, 470));
+		// frame.pack();
+		frame.setVisible(true);
+	}
 
 	public void closeDialog() {
 		List<SmedPluggable> plugins = SmedTabbedPane.getPlugins();
-		
-		if(plugins != null) {
-			for(SmedPluggable p : plugins) p.stop();
+
+		if (plugins != null) {
+			for (SmedPluggable p : plugins)
+				p.stop();
 		}
-		
-		if(isOpen) {
+
+		if (isOpen) {
 			frame.setVisible(false);
 			frame.dispose();
 		}
-		
+
 		isOpen = false;
 	}
 
-
 	public void setOsmItem(JMenuItem item) {
-		osmItem = item;		
+		osmItem = item;
 	}
 
