private static class MainApplication.DefaultNativeOsCallback extends java.lang.Object implements PlatformHook.NativeOsCallback
Modifier | Constructor and Description |
---|---|
private |
DefaultNativeOsCallback() |
Modifier and Type | Method and 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.
|
private DefaultNativeOsCallback()
public void openFiles(java.util.List<java.io.File> files)
PlatformHook.NativeOsCallback
openFiles
in interface PlatformHook.NativeOsCallback
files
- list of files to openpublic boolean handleQuitRequest()
PlatformHook.NativeOsCallback
handleQuitRequest
in interface PlatformHook.NativeOsCallback
true
if JOSM has been closed, false
if the user has cancelled the operation.public void handleAbout()
PlatformHook.NativeOsCallback
handleAbout
in interface PlatformHook.NativeOsCallback
public void handlePreferences()
PlatformHook.NativeOsCallback
handlePreferences
in interface PlatformHook.NativeOsCallback