net.sf.sdedit.editor.apple
Class AppInstaller

java.lang.Object
  extended by net.sf.sdedit.editor.apple.AppInstaller

public abstract class AppInstaller
extends Object

Proxy class for installing an ApplicationListener that receives events generated by MacOS and sends them to the editor.

If the application runs on MacOS, there should be a class that actually performs the installation, with the name ApplicationListenerImpl, located in the same package as this class.

Author:
Markus Strauch

Constructor Summary
protected AppInstaller()
          Constructor.
 
Method Summary
protected abstract  File fileToLoad()
          Returns a file to be loaded, if a MacOS requests a file to be opened at startup.
static File getFileToLoad()
          If an ApplicationListener has been successfully installed and if it has received an event saying that a file is to be loaded at startup time, this file is returned, otherwise null
static void installApplication(Editor editor)
          Installs an ApplicationListener that receives application events generated by MacOS or does nothing if not running MacOS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppInstaller

protected AppInstaller()
Constructor.

Method Detail

installApplication

public static void installApplication(Editor editor)
Installs an ApplicationListener that receives application events generated by MacOS or does nothing if not running MacOS.

Parameters:
editor - the Editor instance

fileToLoad

protected abstract File fileToLoad()
Returns a file to be loaded, if a MacOS requests a file to be opened at startup.

Returns:
a file to be loaded

getFileToLoad

public static File getFileToLoad()
If an ApplicationListener has been successfully installed and if it has received an event saying that a file is to be loaded at startup time, this file is returned, otherwise null

Returns:
a file to be loaded on startup running MacOS


Copyright © 2011. All Rights Reserved.