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 private
DefaultNativeOsCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleAbout()
macOS: Called when JOSM is asked to show it's about dialog.void
handlePreferences()
macOS: Called when JOSM is asked to show it's preferences UI.boolean
handleQuitRequest()
macOS: Invoked when JOSM is asked to quit.void
openFiles(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.NativeOsCallback
macOS: Called when JOSM is asked to open a list of files.- Specified by:
openFiles
in interfacePlatformHook.NativeOsCallback
- Parameters:
files
- list of files to open
-
handleQuitRequest
public boolean handleQuitRequest()
Description copied from interface:PlatformHook.NativeOsCallback
macOS: Invoked when JOSM is asked to quit.- Specified by:
handleQuitRequest
in interfacePlatformHook.NativeOsCallback
- Returns:
true
if JOSM has been closed,false
if the user has cancelled the operation.
-
handleAbout
public void handleAbout()
Description copied from interface:PlatformHook.NativeOsCallback
macOS: Called when JOSM is asked to show it's about dialog.- Specified by:
handleAbout
in interfacePlatformHook.NativeOsCallback
-
handlePreferences
public void handlePreferences()
Description copied from interface:PlatformHook.NativeOsCallback
macOS: Called when JOSM is asked to show it's preferences UI.- Specified by:
handlePreferences
in interfacePlatformHook.NativeOsCallback
-
-