Package org.openstreetmap.josm.tools
Interface PlatformHook.NativeOsCallback
- All Known Implementing Classes:
MainApplication.DefaultNativeOsCallback
- Enclosing interface:
- PlatformHook
public static interface PlatformHook.NativeOsCallback
Called when interfacing with native OS functions. Currently only used with macOS.
The callback must perform all GUI-related tasks associated to an OS request.
The non-GUI, platform-specific tasks, are usually performed by the
PlatformHook.- Since:
- 12695
-
Method Summary
Modifier and TypeMethodDescriptionvoidmacOS: Called when JOSM is asked to show it's about dialog.voidmacOS: Called when JOSM is asked to show it's preferences UI.booleanmacOS: Invoked when JOSM is asked to quit.voidmacOS: Called when JOSM is asked to open a list of files.
-
Method Details
-
openFiles
macOS: Called when JOSM is asked to open a list of files.- Parameters:
files- list of files to open
-
handleQuitRequest
boolean handleQuitRequest()macOS: Invoked when JOSM is asked to quit.- Returns:
trueif JOSM has been closed,falseif the user has cancelled the operation.
-
handleAbout
void handleAbout()macOS: Called when JOSM is asked to show it's about dialog. -
handlePreferences
void handlePreferences()macOS: Called when JOSM is asked to show it's preferences UI.
-