|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.viewer.Application
public class Application
If the "log" arg is specified, all ApplicationContext messages and all Log4J messages will all be appended to a log file. The user can specify a file for this purpose, or one can be written in the temp dir. If this logging is on and a CommandLineModule fails execution, the full log will be appended to the failure log. If a CLM fails execution and logging is NOT on, the user is prompted to re-run the command with logging on.
| Field Summary | |
|---|---|
protected boolean |
_isWorkbenchInitialized
|
protected static boolean |
enableLog
|
static java.lang.String |
FAILURE_REPORT_ERRORMESSAGE_TEXT
|
static java.lang.String |
FAILURE_REPORT_HEADER_TEXT
|
protected static java.io.File |
logFile
|
protected static java.lang.String |
LOGFILE_DUMMY_CALLER
|
protected static java.io.PrintWriter |
logPrintWriter
|
protected static java.lang.String |
MESSAGE_TYPE_ERROR
|
protected static java.lang.String |
MESSAGE_TYPE_INFO
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
|
static void |
closeLog()
|
void |
errorMessage(java.lang.String message,
java.lang.Throwable t)
|
javax.swing.JFrame |
getFrame()
|
static Application |
getInstance()
|
static java.io.File |
getLogFile()
|
protected static java.io.PrintWriter |
getPrintWriter(java.lang.String outFileName)
|
java.lang.Object |
getProperty(java.lang.String name)
|
protected static boolean |
handleHardcodedCommand(java.lang.String command,
java.lang.String[] args,
java.lang.String revision)
Checks if the command is one of the few that we handle in a hardcoded fashion. |
void |
infoMessage(java.lang.String message)
|
static boolean |
isLogEnabled()
|
static void |
main(java.lang.String[] args)
Starts the application. |
static void |
ms2Correct(java.lang.String[] args)
TODO: we should remove this, probably |
void |
OpenFile(java.lang.String filename)
|
static boolean |
processRawArguments(CommandLineModule module,
java.lang.String[] args)
For CommandLineModule commands, parse the argument strings, digest the relevant arguments according to the definitions provided by the module. |
static void |
quit()
|
static void |
quit(int status)
|
static void |
quit(java.lang.String err)
|
void |
redrawWorkbench()
start from scratch with a new Workbench. |
protected static void |
runCommand(CommandLineModule module,
java.lang.String[] args)
Handle arguments and run a command |
static void |
setMessage(java.lang.String message)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
protected static void |
showHelp(CommandLineModule module)
Show help for a given module |
protected void |
showMessage(java.lang.String text,
java.lang.String messageType)
|
static void |
showUsage()
"--revision\n" + "--ms2Correct --features=ms1FeatureFile [--out=outfilename] [filterOptions] runFile" + "\n" + "--optimize [--out=outfilename] [--scanWindows=int,int,...] [--massWindows=float,float,float] [filterOptions] featureFiles..." + "\n" + "--deconvolute --quant [--out=outfilename] [--scanWindow=int] [--massWindow=float] [--lightTagWeight=float] [--heavyTagWeight=float] [--maxLabelCount=int] [--labeledResidue=char] [--intensityType={total,max,recalculated}] [--msFile=filepath] --deltaTime=[float] --deltaMass=[float][da|ppm] featureFile" + "\n" + " --deconvolute and --quant may be used together or separately\n" + "\n" + "[filterOptions] = \n" + "[--minMz=float] [--maxMz=float] [--minMass=float] [--maxMass=float]\n" + "[--minPeaks=int] [--minCharge=int] [--maxCharge=int] [--maxKL=float]\n" + "[--minIntensity=float] [--minTotalIntensity=float]\n" + "[--minTime=float] [--maxTime=float]\n" + "[--scanFirst=int] [scanLast=int] [--minScans=int]\n" + "scanFirst and scanLast filter the scan column. |
void |
status(java.lang.String message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean _isWorkbenchInitialized
protected static boolean enableLog
protected static java.io.File logFile
protected static java.io.PrintWriter logPrintWriter
protected static final java.lang.String LOGFILE_DUMMY_CALLER
protected static java.lang.String MESSAGE_TYPE_INFO
protected static java.lang.String MESSAGE_TYPE_ERROR
public static final java.lang.String FAILURE_REPORT_ERRORMESSAGE_TEXT
public static final java.lang.String FAILURE_REPORT_HEADER_TEXT
| Method Detail |
|---|
public static Application getInstance()
public static void setMessage(java.lang.String message)
public void redrawWorkbench()
public void status(java.lang.String message)
status in interface ApplicationContext.ApplicationContextProvider
public void errorMessage(java.lang.String message,
java.lang.Throwable t)
errorMessage in interface ApplicationContext.ApplicationContextProviderpublic void infoMessage(java.lang.String message)
infoMessage in interface ApplicationContext.ApplicationContextProvider
protected void showMessage(java.lang.String text,
java.lang.String messageType)
public javax.swing.JFrame getFrame()
getFrame in interface ApplicationContext.ApplicationContextProvider
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface ApplicationContext.ApplicationContextProviderpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface ApplicationContext.ApplicationContextProviderpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface ApplicationContext.ApplicationContextProvider
public void addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface ApplicationContext.ApplicationContextProviderpublic void OpenFile(java.lang.String filename)
protected static void runCommand(CommandLineModule module,
java.lang.String[] args)
module - args -
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
protected static boolean handleHardcodedCommand(java.lang.String command,
java.lang.String[] args,
java.lang.String revision)
command - args - revision -
protected static void showHelp(CommandLineModule module)
module -
public static boolean processRawArguments(CommandLineModule module,
java.lang.String[] args)
args -
public static void closeLog()
public static void quit()
public static void quit(java.lang.String err)
public static void quit(int status)
public static void showUsage()
protected static java.io.PrintWriter getPrintWriter(java.lang.String outFileName)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static void ms2Correct(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exceptionpublic static boolean isLogEnabled()
public static java.io.File getLogFile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||