Package org.openstreetmap.josm.gui
Class MainApplication.DefaultNativeOsCallback
- java.lang.Object
-
- org.openstreetmap.josm.gui.MainApplication.DefaultNativeOsCallback
-
- All Implemented Interfaces:
PlatformHook.NativeOsCallback
- Enclosing class:
- MainApplication
private static final class MainApplication.DefaultNativeOsCallback extends java.lang.Object implements PlatformHook.NativeOsCallback
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultNativeOsCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleAbout()macOS: Called when JOSM is asked to show it's about dialog.voidhandlePreferences()macOS: Called when JOSM is asked to show it's preferences UI.booleanhandleQuitRequest()macOS: Invoked when JOSM is asked to quit.voidopenFiles(java.util.List<java.io.File> files)macOS: Called when JOSM is asked to open a list of files.
-
-
-
Constructor Detail
-
DefaultNativeOsCallback
private DefaultNativeOsCallback()
-
-
Method Detail
-
openFiles
public void openFiles(java.util.List<java.io.File> files)
Description copied from interface:PlatformHook.NativeOsCallbackmacOS: Called when JOSM is asked to open a list of files.- Specified by:
openFilesin interfacePlatformHook.NativeOsCallback- Parameters:
files- list of files to open
-
handleQuitRequest
public boolean handleQuitRequest()
Description copied from interface:PlatformHook.NativeOsCallbackmacOS: Invoked when JOSM is asked to quit.- Specified by:
handleQuitRequestin interfacePlatformHook.NativeOsCallback- Returns:
trueif JOSM has been closed,falseif the user has cancelled the operation.
-
handleAbout
public void handleAbout()
Description copied from interface:PlatformHook.NativeOsCallbackmacOS: Called when JOSM is asked to show it's about dialog.- Specified by:
handleAboutin interfacePlatformHook.NativeOsCallback
-
handlePreferences
public void handlePreferences()
Description copied from interface:PlatformHook.NativeOsCallbackmacOS: Called when JOSM is asked to show it's preferences UI.- Specified by:
handlePreferencesin interfacePlatformHook.NativeOsCallback
-
-