public class PlatformHookOsx extends PlatformHookUnixoid implements PlatformHook, java.lang.reflect.InvocationHandler
PlatformHook implementation for Apple Mac OS X systems.PlatformHookUnixoid.FontEntry, PlatformHookUnixoid.LinuxReleaseInfo| Modifier and Type | Field and Description |
|---|---|
private static PlatformHookOsx |
ivhandler |
| Constructor and Description |
|---|
PlatformHookOsx() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFullscreen()
Determines if the platform allows full-screen.
|
static void |
enableOSXFullscreen(java.awt.Window window)
Enables fullscreen support for the given window.
|
java.io.File |
getDefaultCacheDirectory()
Returns the platform-dependent default cache directory.
|
java.io.File |
getDefaultPrefDirectory()
Returns the platform-dependent default preferences directory.
|
java.lang.String |
getDefaultStyle()
Returns the default LAF to be used on this platform to look almost as a native application.
|
java.io.File |
getDefaultUserDataDirectory()
Returns the platform-dependent default user data directory.
|
java.lang.String |
getOSDescription()
Returns a detailed OS description (at least family + version).
|
void |
initSystemShortcuts()
The initSystemShortcuts hook will be called by the
Shortcut class after the modifier groups have been read
from the config, but before any shortcuts are read from
it or registered from within the application.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
java.lang.String |
makeTooltip(java.lang.String name,
Shortcut sc)
This should work for all platforms.
|
static void |
migrateOldDirectory()
Prior to r7834, JOSM used the same Unix directory ~/.josm for all local files (preferences,
caches, user data).
|
void |
openUrl(java.lang.String url)
The openURL hook will be used to open an URL in the
default web browser.
|
void |
preStartupHook()
The preStartupHook will be called extremly early.
|
void |
startupHook()
The startupHook will be called early, but after the GUI
setup has started.
|
afterPrefStartupHook, askUpdateJava, askUpdateJava, buildOSDescription, extendFontconfig, getAdditionalFonts, getInstalledFonts, getJavaPackageDetails, getPackageDetails, getWebStartPackageDetails, isOpenJDK, rename, setupHttpsCertificateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterPrefStartupHook, rename, setupHttpsCertificateprivate static PlatformHookOsx ivhandler
public PlatformHookOsx()
public void preStartupHook()
PlatformHookpreStartupHook in interface PlatformHookpreStartupHook in class PlatformHookUnixoidpublic void startupHook()
PlatformHookstartupHook in interface PlatformHookstartupHook in class PlatformHookUnixoidpublic static void enableOSXFullscreen(java.awt.Window window)
window - The window for which full screen will be availablepublic java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic void openUrl(java.lang.String url) throws java.io.IOException
PlatformHookopenUrl in interface PlatformHookopenUrl in class PlatformHookUnixoidurl - The URL to openjava.io.IOException - if any I/O error occurspublic void initSystemShortcuts()
PlatformHookinitSystemShortcuts in interface PlatformHookinitSystemShortcuts in class PlatformHookUnixoidpublic java.lang.String makeTooltip(java.lang.String name, Shortcut sc)
PlatformHookUnixoidmakeTooltip in interface PlatformHookmakeTooltip in class PlatformHookUnixoidname - Tooltip text to displaysc - Shortcut associated (to display accelerator between parenthesis)public java.lang.String getDefaultStyle()
PlatformHookgetDefaultStyle in interface PlatformHookgetDefaultStyle in class PlatformHookUnixoidpublic boolean canFullscreen()
PlatformHookcanFullscreen in interface PlatformHookcanFullscreen in class PlatformHookUnixoidtrue if full screen is allowed, false otherwisepublic java.lang.String getOSDescription()
PlatformHookgetOSDescription in interface PlatformHookgetOSDescription in class PlatformHookUnixoidpublic java.io.File getDefaultCacheDirectory()
PlatformHookgetDefaultCacheDirectory in interface PlatformHookgetDefaultCacheDirectory in class PlatformHookUnixoidpublic java.io.File getDefaultPrefDirectory()
PlatformHookgetDefaultPrefDirectory in interface PlatformHookgetDefaultPrefDirectory in class PlatformHookUnixoidpublic java.io.File getDefaultUserDataDirectory()
PlatformHookgetDefaultUserDataDirectory in interface PlatformHookgetDefaultUserDataDirectory in class PlatformHookUnixoidpublic static void migrateOldDirectory()