|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.darwinsys.macosui.MacOSUtil
public class MacOSUtil
Utilities for GUI work.
Constructor Summary | |
---|---|
MacOSUtil()
|
Method Summary | |
---|---|
java.lang.Process |
exec(java.lang.String[] command)
Handle Apple's continuing failure to make their Java implementation's version of Runtime.exec() match normal users' behaviour, that is, make Runtime.exec("Foo.app") actually run "Foo". |
static boolean |
isMacOS()
Return true if we are running MacOS; need a few GUI tweaks if so. |
static void |
setMacOS(java.lang.String appName)
Set a few common properties for the given application if running under MacOS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacOSUtil()
Method Detail |
---|
public static boolean isMacOS()
public static void setMacOS(java.lang.String appName)
if (MacOSUtil.isMacOS()) { MacOSUtil.setMacOS("JabaDex"); }
appName
- - the name of the Application.public java.lang.Process exec(java.lang.String[] command) throws java.io.IOException
command
- The commands array
java.io.IOException
- If anything goes wrong.Runtime.exec(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |