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.NativeOsCallbackopenFiles in interface PlatformHook.NativeOsCallbackfiles - list of files to openpublic boolean handleQuitRequest()
PlatformHook.NativeOsCallbackhandleQuitRequest in interface PlatformHook.NativeOsCallbacktrue if JOSM has been closed, false if the user has cancelled the operation.public void handleAbout()
PlatformHook.NativeOsCallbackhandleAbout in interface PlatformHook.NativeOsCallbackpublic void handlePreferences()
PlatformHook.NativeOsCallbackhandlePreferences in interface PlatformHook.NativeOsCallback