oracle.jdeveloper.runner
Class RunningProcess
java.lang.Object
oracle.ide.runner.RunProcess
oracle.jdeveloper.runner.JRunProcess
oracle.jdeveloper.runner.RunningProcess
- All Implemented Interfaces:
- Helpable, Displayable, Element
public class RunningProcess
- extends JRunProcess
Fields inherited from class oracle.jdeveloper.runner.JRunProcess |
ANT_FIRST_COMMAND_OPTIONS, ANT_LAST_COMMAND_OPTIONS, compileSavedAll, considerDefaultRunTarget, DATABASE_RUN_HELPER, JAVA_BOOT_CLASS_PATH, JAVA_CLASS_PATH, JAVA_FIRST_COMMAND_OPTIONS, JAVA_LAST_COMMAND_OPTIONS, lockCompiler, RUN_COOKIE_JAVA_EMBEDDED_SERVER, RUN_TYPE_ANT, RUN_TYPE_DATABASE, RUN_TYPE_JAVA, RUN_TYPE_JS_MOZILLA_FIREFOX, RUN_TYPE_XQUERY, RUN_TYPE_XSLT, runConfiguration, timeAfterCompile, XSLT_FIRST_COMMAND_OPTIONS, XSLT_LAST_COMMAND_OPTIONS |
Fields inherited from class oracle.ide.runner.RunProcess |
addToProcessesFolder, addToTerminateMenu, allowInput, container, context, determineTargetAndStarterAlready, errors, hideTerminateAction, iconOverride, isPreparingLabel, labelOverride, labelPrefixOverride, logCommandString, logError, logExit, logOutput, logPageOverride, logStartDirectory, RUN_PROCESS_DO_NOT_CONSIDER_DEFAULT, RUN_PROCESS_USE_NODE_FROM_CONTEXT, runProcessListener, showStartStatus, starter, target, timeCreated, useContainerLogPage, useLogPage, userCanceled |
Method Summary |
boolean |
canRun(java.lang.String runType,
java.lang.Object cookie,
Node node,
java.util.List errors)
canRun should be called by the StarterFactory's canStart method. |
void |
finished()
This method will be called by the Starter, when this
process finishes. |
static javax.swing.Icon |
getDefaultIcon()
|
HelpInfo |
getHelpInfo()
Returns the help info to be used when the user presses F1 in the
log page for this run process. |
javax.swing.Icon |
getIcon()
Gets the Icon for this RunProcess element. |
java.lang.String |
getProcessLabelPrefix()
Returns the prefix that will be used in the short and long labels
for this RunProcess. |
protected boolean |
startTarget()
Clears the log page associated with this run process (if
appropriate). |
Methods inherited from class oracle.jdeveloper.runner.JRunProcess |
addProcessActionButtonToToolbar, addProcessActionButtonToToolbar, checkStarter, clearProcessActionButtonsFromToolbar, compile, determineTargetAndStarter, getJdkDefinition, getJProject, getLogPageToolbar, getProcessActionButtonGroup, getRunConfiguration, getStartDirectory, getTimeAfterCompile, isPlainRun, isSameType, makeLogPage, setProcessActionButtonGroup, showLogPageToolbar, showProcessActionButtonsOnToolbar, start |
Methods inherited from class oracle.ide.runner.RunProcess |
canContainRunProcesses, canGarbageCollect, canGetStarterForTarget, canStart, canStopInChrome, canStopOnDebuggerStatement, canStopOnError, canStopOnException, canTerminate, canTransferErrors, copyTo, determineTargetAndStarter, doGarbageCollection, doubleClicked, doUI, doUILater, duplicateErrorStream, duplicateOutputStream, fireFinished, fireStarted, fixCommandStringForLog, getAttributes, getChildren, getContainer, getContext, getContextNodeForRun, getData, getLogPage, getLogPage, getLongLabel, getProcessLayout, getProject, getProject, getRunnableItems, getRunnableItemsForTarget, getShortLabel, getShortLabelWithPrefix, getStartCommand, getStartEnvironmentParams, getStarter, getStarter, getStarterFactorySubClass, getStarterForTarget, getStopInChrome, getStopOnDebuggerStatement, getStopOnError, getStopOnException, getSystemErrAttributeSet, getSystemOutAttributeSet, getTarget, getTarget, getTerminateCommand, getTimeCreated, getToolTipText, getTransferErrors, getUseContainerLogPage, getUseLogPage, getValue, getWorkspace, hasFinished, inheritLogPage, isStartOnly, log, logCommandString, logStartDirectory, logStartErrors, mayHaveChildren, mustPrepareToStart, prepareToStart, redirectInput, redirectOutput, reuseLogPage, selected, setContainer, setHideTerminateAction, setIconOverride, setLabelOverride, setLabelPrefixOverride, setLogError, setLogExit, setLogOutput, setLogPageOverride, setStopInChrome, setStopOnDebuggerStatement, setStopOnError, setStopOnException, setTransferErrors, setUseContainerLogPage, setUseLogPage, showStartStatus, start, started, suppressDirectoryDefault, terminate, toString, unselected, waitForRedirectOutput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RunningProcess
public RunningProcess(Context context)
canRun
public boolean canRun(java.lang.String runType,
java.lang.Object cookie,
Node node,
java.util.List errors)
- Description copied from class:
RunProcess
- canRun should be called by the StarterFactory's canStart method.
RunProcess subclasses that can run the specified runType should
override this method and return true.
RunProcess subclasses that can not run the specified runType
should override this method and add an error message to the errors
list before returning false.
- Overrides:
canRun
in class RunProcess
getProcessLabelPrefix
public java.lang.String getProcessLabelPrefix()
- Description copied from class:
RunProcess
- Returns the prefix that will be used in the short and long labels
for this RunProcess.
- Specified by:
getProcessLabelPrefix
in class RunProcess
- Returns:
- the prefix that will be used in the short and long labels
getIcon
public javax.swing.Icon getIcon()
- Description copied from class:
RunProcess
- Gets the Icon for this RunProcess element.
- Specified by:
getIcon
in interface Displayable
- Overrides:
getIcon
in class RunProcess
- Returns:
- the Icon for this RunProcess element.
getDefaultIcon
public static javax.swing.Icon getDefaultIcon()
getHelpInfo
public HelpInfo getHelpInfo()
- Description copied from class:
RunProcess
- Returns the help info to be used when the user presses F1 in the
log page for this run process.
- Specified by:
getHelpInfo
in interface Helpable
- Overrides:
getHelpInfo
in class RunProcess
- Returns:
- the HelpInfo
startTarget
protected boolean startTarget()
- Description copied from class:
JRunProcess
- Clears the log page associated with this run process (if
appropriate).
Calls the super.startTarget
method.
- Overrides:
startTarget
in class JRunProcess
- Returns:
true
if the process was started
finished
public void finished()
- Description copied from class:
RunProcess
- This method will be called by the Starter, when this
process finishes.
If the start method was not used to start the process,
then this method should be called when the process finishes.
This method removes the process from the processes folder in the
run manager navigator and removes the terminate menu, if a
terminate menu item was added to the Run Terminate submenu for
this process.
- Overrides:
finished
in class RunProcess
Copyright © 1997, 2011, Oracle. All rights reserved.