public class GJavaCommandLauncher extends GCommandLauncher
GCommandLauncher.GCommandShutdownHookThread, GCommandLauncher.GExecButton, GCommandLauncher.GExecMenuItem, GCommandLauncher.ProcessStatus
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GJavaCommandLauncher(String[] argArray,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea)
Constructor.
|
GJavaCommandLauncher(String[] argArray,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea,
GTextAreaInterface stderrTextArea)
Constructor.
|
GJavaCommandLauncher(String[] argArray,
String classPath,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea)
Constructor.
|
GJavaCommandLauncher(String[] argArray,
String classPath,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea,
GTextAreaInterface stderrTextArea)
Constructor.
|
GJavaCommandLauncher(String widgetId,
String[] argJavaArray,
String[] argArray,
String classPath,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea,
GTextAreaInterface stderrTextArea)
Constructor.
|
GJavaCommandLauncher(String widgetId,
String[] argArray,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea)
Constructor.
|
GJavaCommandLauncher(String widgetId,
String[] argArray,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea,
GTextAreaInterface stderrTextArea)
Constructor.
|
GJavaCommandLauncher(String widgetId,
String[] argArray,
String classPath,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea)
Constructor.
|
GJavaCommandLauncher(String widgetId,
String[] argArray,
String classPath,
String runString,
String stopString,
GTextAreaInterface stdoutTextArea,
GTextAreaInterface stderrTextArea)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setCommandLine(String[] commandLine)
Set the command line from the derived classes.
|
void |
setJavaCommand(String[] argJavaArray,
String classPath,
String[] argArray)
Set the command line: java [options] -classpath
|
void |
setJavaCommand(String classPath,
String[] argArray)
Set the command line: java -classpath
|
after, before, clearProcessExitDetector, display, generic, getExitCode, getGExecButton, getGExecMenuItem, getGProgressBar, getInhibited, getProcessStatus, getResetTextAreaInterfaceOnRun, getStderrGTextAreaInterface, getStdoutGTextAreaInterface, getSubComponent, isCopyOutputToStdout, isRunning, launchStop, processFinished, processFinishedInvokeLater, setButtonIcons, setButtonIcons, setButtonIcons, setCopyOutputToStdout, setDefaultConstraints, setEnabled, setInhibited, setMenuIcons, setMenuIcons, setMenuIcons, setResetTextAreaInterfaceOnRun, setState, setStringConstraint
put
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GJavaCommandLauncher(String[] argArray, String runString, String stopString, GTextAreaInterface stdoutTextArea, GTextAreaInterface stderrTextArea)
argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.stderrTextArea
- where the error stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String[] argArray, String runString, String stopString, GTextAreaInterface stdoutTextArea)
argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String widgetId, String[] argArray, String runString, String stopString, GTextAreaInterface stdoutTextArea)
widgetId
- widget identifier.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String widgetId, String[] argArray, String runString, String stopString, GTextAreaInterface stdoutTextArea, GTextAreaInterface stderrTextArea)
widgetId
- widget identifier.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.stderrTextArea
- where the error stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String[] argArray, String classPath, String runString, String stopString, GTextAreaInterface stdoutTextArea, GTextAreaInterface stderrTextArea)
classPath
- class path to intialise the JVM.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.stderrTextArea
- where the error stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String[] argArray, String classPath, String runString, String stopString, GTextAreaInterface stdoutTextArea)
classPath
- class path to intialise the JVM.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String widgetId, String[] argArray, String classPath, String runString, String stopString, GTextAreaInterface stdoutTextArea)
widgetId
- widget identifier.classPath
- class path to intialise the JVM.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String widgetId, String[] argArray, String classPath, String runString, String stopString, GTextAreaInterface stdoutTextArea, GTextAreaInterface stderrTextArea)
widgetId
- widget identifier.classPath
- class path to intialise the JVM.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.stderrTextArea
- where the error stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public GJavaCommandLauncher(String widgetId, String[] argJavaArray, String[] argArray, String classPath, String runString, String stopString, GTextAreaInterface stdoutTextArea, GTextAreaInterface stderrTextArea)
widgetId
- widget identifier.classPath
- class path to intialise the JVM.argJavaArray
- array of Java arguments to pass to the JVM in the command line.argArray
- array of arguments to pass to the JVM in the command line.runString
- string to display in the launch menu item and button when the program is not running.stopString
- string to display in the launch menu item and button when the program is running.stdoutTextArea
- where the output stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.stderrTextArea
- where the error stream from the underlying process are sent. If it is null both streams are
sent to the standard output of the IHM. If the textArea is not a descendant of GComponent a
runtime exception is thrown.public final void setJavaCommand(String classPath, String[] argArray)
classPath
- class path to intialize the JVM.argArray
- array of arguments to pass to the JVM in the command line, if null no command line arguments
are defined.public final void setJavaCommand(String[] argJavaArray, String classPath, String[] argArray)
argJavaArray
- array of Java arguments to pass to the JVM in the command line, if null, no command line arguments
are defined.classPath
- class path to intialize the JVM.argArray
- array of arguments to pass to the JVM in the command line, if null no command line arguments
are defined.public void setCommandLine(String[] commandLine)
GCommandLauncher
setCommandLine
in class GCommandLauncher
commandLine
- new command line.Copyright © 2024. All rights reserved.