Package uk.ac.starlink.topcat
Class Driver
java.lang.Object
uk.ac.starlink.topcat.Driver
Main class for invoking the TOPCAT application from scratch.
Contains some useful static configuration-type methods as well
as the
main(java.lang.String[])
method itself.- Since:
- 9 Mar 2004
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canRead()
Indicates whether the security context will permit reads from local disk.static boolean
canWrite()
Indicates whether the security context will permit writes to local disk.static boolean
Indicates whether the TableViewer application is standalone or not.static void
Main method for TOPCAT invocation.static void
setStandalone
(boolean standalone) Determines whether TableViewers associated with this class should act as a standalone application.
-
Constructor Details
-
Driver
public Driver()
-
-
Method Details
-
setStandalone
public static void setStandalone(boolean standalone) Determines whether TableViewers associated with this class should act as a standalone application. If standalone is set true, then it will be possible to exit the JVM using menu items etc in the viewer. Otherwise, no normal activity within the TableViewer GUI will cause a JVM exit.- Parameters:
standalone
- whether this class should act as a standalone application
-
isStandalone
public static boolean isStandalone()Indicates whether the TableViewer application is standalone or not.- Returns:
- whether this should act as a standalone application.
-
canRead
public static boolean canRead()Indicates whether the security context will permit reads from local disk.- Returns:
- true iff reads are permitted
-
canWrite
public static boolean canWrite()Indicates whether the security context will permit writes to local disk.- Returns:
- true iff writes are permitted
-
main
Main method for TOPCAT invocation. Under normal circumstances this will pop up a ControlWindow and populate it with tables named in the arguments.- Parameters:
args
- list of flags and table specifications- Throws:
org.astrogrid.samp.client.SampException
IOException
-