org.openstreetmap.josm.tools
Class PlatformHookWindows

java.lang.Object
  extended by org.openstreetmap.josm.tools.PlatformHookUnixoid
      extended by org.openstreetmap.josm.tools.PlatformHookWindows
All Implemented Interfaces:
PlatformHook

public class PlatformHookWindows
extends PlatformHookUnixoid
implements PlatformHook

see PlatformHook.java


Constructor Summary
PlatformHookWindows()
           
 
Method Summary
 java.lang.String getDefaultStyle()
           
 void initSystemShortcuts()
          The initSystemShortcuts hook will be called by the Shortcut class after the modifier groups have been read from the config, but before any shortcuts are read from it or registered from within the application.
 void openUrl(java.lang.String url)
          The openURL hook will be used to open an URL in the default webbrowser.
 boolean rename(java.io.File from, java.io.File to)
           
 
Methods inherited from class org.openstreetmap.josm.tools.PlatformHookUnixoid
canFullscreen, makeTooltip, preStartupHook, startupHook
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openstreetmap.josm.tools.PlatformHook
canFullscreen, makeTooltip, preStartupHook, startupHook
 

Constructor Detail

PlatformHookWindows

public PlatformHookWindows()
Method Detail

openUrl

public void openUrl(java.lang.String url)
             throws java.io.IOException
Description copied from interface: PlatformHook
The openURL hook will be used to open an URL in the default webbrowser.

Specified by:
openUrl in interface PlatformHook
Overrides:
openUrl in class PlatformHookUnixoid
Throws:
java.io.IOException

initSystemShortcuts

public void initSystemShortcuts()
Description copied from interface: PlatformHook
The initSystemShortcuts hook will be called by the Shortcut class after the modifier groups have been read from the config, but before any shortcuts are read from it or registered from within the application. Plese note that you are not allowed to register any shortuts from this hook, but only "systemCuts"! BTW: SystemCuts should be named "system:", and it'd be best if sou'd recycle the names already used by the Windows and OSX hooks. Especially the later has really many of them. You should also register any and all shortcuts that the operation system handles itself to block JOSM from trying to use them---as that would just not work. Call setAutomatic on them to prevent the keyboard preferences from allowing the user to change them.

Specified by:
initSystemShortcuts in interface PlatformHook
Overrides:
initSystemShortcuts in class PlatformHookUnixoid

getDefaultStyle

public java.lang.String getDefaultStyle()
Specified by:
getDefaultStyle in interface PlatformHook
Overrides:
getDefaultStyle in class PlatformHookUnixoid

rename

public boolean rename(java.io.File from,
                      java.io.File to)
Specified by:
rename in interface PlatformHook
Overrides:
rename in class PlatformHookUnixoid


JOSM