Index: applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/BrowseAction.java
===================================================================
--- applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/BrowseAction.java	(revision 31690)
+++ applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/BrowseAction.java	(revision 32550)
@@ -1,2 +1,3 @@
+// License: GPL. For details, see LICENSE file.
 package touchscreenhelper;
 
@@ -11,6 +12,6 @@
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.mapmode.MapMode;
+import org.openstreetmap.josm.data.coor.EastNorth;
 import org.openstreetmap.josm.gui.MapFrame;
-import org.openstreetmap.josm.data.coor.EastNorth;
 import org.openstreetmap.josm.tools.Shortcut;
 
@@ -28,10 +29,10 @@
         MapFrame.addMapModeChangeListener(this);
     }
-    
+
     @Override
     public void mapModeChange(MapMode oldMapMode, MapMode newMapMode) {
         this.oldMapMode = oldMapMode;
     }
-    
+
     @Override public void enterMode() {
         super.enterMode();
@@ -43,5 +44,5 @@
             protected void doKeyReleaseEvent(KeyEvent evt) {
                 if (evt.getKeyCode() == getShortcut().getKeyStroke().getKeyCode()) {
-                    if (oldMapMode!=null && !(oldMapMode instanceof BrowseAction))
+                    if (oldMapMode != null && !(oldMapMode instanceof BrowseAction))
                     Main.map.selectMapMode(oldMapMode);
                 }
@@ -58,4 +59,5 @@
     }
 
+    @Override
     public void mouseDragged(MouseEvent e) {
         if ((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) !=
Index: applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/TimedKeyReleaseListener.java
===================================================================
--- applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/TimedKeyReleaseListener.java	(revision 31690)
+++ applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/TimedKeyReleaseListener.java	(revision 32550)
@@ -1,7 +1,7 @@
+// License: GPL. For details, see LICENSE file.
 package touchscreenhelper;
 
 // Thanks to http://www.arco.in-berlin.de/keyevent.html
 // (code simplified here)
-
 
 import java.awt.AWTEvent;
@@ -12,5 +12,8 @@
 import java.awt.event.KeyEvent;
 import java.util.TreeSet;
+
 import javax.swing.Timer;
+
+import org.openstreetmap.josm.Main;
 
 public class TimedKeyReleaseListener implements AWTEventListener {
@@ -18,5 +21,5 @@
     private Timer timer;
     protected KeyEvent releaseEvent;
-    
+
     public TimedKeyReleaseListener() {
         timer = new Timer(0, new ActionListener() {
@@ -29,11 +32,13 @@
             }
         });
-        
+
         try {
             Toolkit.getDefaultToolkit().addAWTEventListener(this,
                     AWTEvent.KEY_EVENT_MASK);
         } catch (SecurityException ex) {
+            Main.error(ex);
         }
     }
+
     @Override
     public void eventDispatched(AWTEvent event) {
@@ -57,5 +62,4 @@
         }
     }
-    
 
     public void stop() {
@@ -63,8 +67,8 @@
             Toolkit.getDefaultToolkit().removeAWTEventListener(this);
         } catch (SecurityException ex) {
+            Main.error(ex);
         }
     }
 
-    
     protected void doKeyReleaseEvent(KeyEvent evt) {
     }
Index: applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/TouchScreenHelperPlugin.java
===================================================================
--- applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/TouchScreenHelperPlugin.java	(revision 31690)
+++ applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/TouchScreenHelperPlugin.java	(revision 32550)
@@ -1,7 +1,8 @@
+// License: GPL. For details, see LICENSE file.
 package touchscreenhelper;
 
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.IconToggleButton;
 import org.openstreetmap.josm.gui.MapFrame;
-import org.openstreetmap.josm.gui.IconToggleButton;
 import org.openstreetmap.josm.plugins.Plugin;
 import org.openstreetmap.josm.plugins.PluginInformation;
@@ -11,5 +12,7 @@
         super(info);
     }
-    @Override public void mapFrameInitialized(MapFrame oldFrame,
+
+    @Override
+    public void mapFrameInitialized(MapFrame oldFrame,
         MapFrame newFrame) {
         if (oldFrame == null && newFrame != null) {
