|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.applications.desktop.filehandling.MacOSXFileOpener
public class MacOSXFileOpener
This class implements the interface FileOpener, using /usr/bin/open to open documents that LaunchServices has associations for.
Field Summary | |
---|---|
static java.lang.String |
application
Set to /usr/bin/open which is a useful MacOS X application for opening document using their associated application. |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
MacOSXFileOpener()
|
Method Summary | |
---|---|
void |
load()
Does nothing, not used |
void |
open(java.lang.String filename)
Opens the file with the given name, using either a pre-defined application. |
void |
save()
Does nothing, not used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
public static final java.lang.String application
Constructor Detail |
---|
public MacOSXFileOpener()
Method Detail |
---|
public void open(java.lang.String filename)
open
in interface FileOpener
filename
- the name of the file to open.public void load()
load
in interface FileOpener
public void save()
save
in interface FileOpener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |