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 thePlatformHook.- Since:
- 12695
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
openFiles
void openFiles(java.util.List<java.io.File> files)
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.
-
-