|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.runner.RunProcess
oracle.jdeveloper.runner.JRunProcess
public abstract class JRunProcess
An abstract class that represents a Java process.
Field Summary | |
---|---|
static java.lang.String |
ANT_FIRST_COMMAND_OPTIONS
|
static java.lang.String |
ANT_LAST_COMMAND_OPTIONS
|
protected boolean |
compileSavedAll
|
protected boolean |
considerDefaultRunTarget
Whether to consider the default run target when determining the target Node . |
static java.lang.String |
DATABASE_RUN_HELPER
|
static java.lang.String |
JAVA_BOOT_CLASS_PATH
|
static java.lang.String |
JAVA_CLASS_PATH
|
static java.lang.String |
JAVA_FIRST_COMMAND_OPTIONS
|
static java.lang.String |
JAVA_LAST_COMMAND_OPTIONS
|
protected boolean |
lockCompiler
Whether to lock the compiler while the process is running. |
static java.lang.String |
RUN_COOKIE_JAVA_EMBEDDED_SERVER
|
static java.lang.String |
RUN_TYPE_ANT
|
static java.lang.String |
RUN_TYPE_DATABASE
|
static java.lang.String |
RUN_TYPE_JAVA
|
static java.lang.String |
RUN_TYPE_JS_MOZILLA_FIREFOX
|
static java.lang.String |
RUN_TYPE_XQUERY
|
static java.lang.String |
RUN_TYPE_XSLT
|
protected RunConfiguration |
runConfiguration
The RunConfiguration part of the project. |
protected long |
timeAfterCompile
The time after compile finished. |
static java.lang.String |
XSLT_FIRST_COMMAND_OPTIONS
|
static java.lang.String |
XSLT_LAST_COMMAND_OPTIONS
|
Constructor Summary | |
---|---|
JRunProcess()
Calls JRunProcess(Context) with a null
Context . |
|
JRunProcess(Context context)
This constructor initializes fields, including runConfiguration . |
Method Summary | |
---|---|
protected boolean |
checkStarter(Starter starter,
java.util.List errors)
Returns whether the given starter can really be used to start a process. |
protected boolean |
compile()
Compiles the project (if appropriate). |
protected void |
determineTargetAndStarter(java.lang.Class starterFactorySubClass)
Determines what should be the target and starter for this process. |
JDK |
getJdkDefinition()
Returns the JDK for the project. |
Project |
getJProject()
Returns the current Project associated with the
JRunProcess . |
RunConfiguration |
getRunConfiguration()
Returns the current RunConfiguration associated with the
JRunProcess . |
java.io.File |
getStartDirectory()
Returns the directory that should be used as the working directory for the process. |
long |
getTimeAfterCompile()
Returns the time after compile finished. |
boolean |
isPlainRun()
Returns true if this is a plain run. |
boolean |
isSameType(JRunProcess other)
Returns true if this is the same type of run as the
other JRunProcess . |
protected LogPage |
makeLogPage(boolean create)
Creates the RunLogPage for this process. |
void |
start()
Creates a new thread to compile the project. |
protected boolean |
startTarget()
Clears the log page associated with this run process (if appropriate). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean considerDefaultRunTarget
Node
. Usually this is true
.
protected RunConfiguration runConfiguration
protected long timeAfterCompile
protected boolean lockCompiler
protected boolean compileSavedAll
public static final java.lang.String RUN_TYPE_JAVA
public static final java.lang.String RUN_TYPE_DATABASE
public static final java.lang.String RUN_TYPE_XSLT
public static final java.lang.String RUN_TYPE_XQUERY
public static final java.lang.String RUN_TYPE_ANT
public static final java.lang.String RUN_TYPE_JS_MOZILLA_FIREFOX
public static final java.lang.String RUN_COOKIE_JAVA_EMBEDDED_SERVER
public static final java.lang.String JAVA_FIRST_COMMAND_OPTIONS
public static final java.lang.String JAVA_LAST_COMMAND_OPTIONS
public static final java.lang.String JAVA_CLASS_PATH
public static final java.lang.String JAVA_BOOT_CLASS_PATH
public static final java.lang.String DATABASE_RUN_HELPER
public static final java.lang.String XSLT_FIRST_COMMAND_OPTIONS
public static final java.lang.String XSLT_LAST_COMMAND_OPTIONS
public static final java.lang.String ANT_FIRST_COMMAND_OPTIONS
public static final java.lang.String ANT_LAST_COMMAND_OPTIONS
Constructor Detail |
---|
public JRunProcess()
JRunProcess(Context)
with a null
Context
.
public JRunProcess(Context context)
runConfiguration
.
context
- the context for starting the processMethod Detail |
---|
public Project getJProject()
Project
associated with the
JRunProcess
.
public RunConfiguration getRunConfiguration()
RunConfiguration
associated with the
JRunProcess
.
public long getTimeAfterCompile()
protected void determineTargetAndStarter(java.lang.Class starterFactorySubClass)
determineTargetAndStarter
in class RunProcess
starterFactorySubClass
- the chosen StarterFactory
must extend this classprotected boolean checkStarter(Starter starter, java.util.List errors)
JStarter
.
checkStarter
in class RunProcess
public java.io.File getStartDirectory()
getStartDirectory
in class RunProcess
public final void start()
SwingUtilities.invokeLater(java.lang.Runnable)
is used to call
the super.start
method.
start
in class RunProcess
protected boolean compile()
This method is called on a non-event thread.
true
if there are no compiler errorsprotected LogPage makeLogPage(boolean create)
RunProcess
RunLogPage
for this process.
makeLogPage
in class RunProcess
protected boolean startTarget()
Calls the super.startTarget
method.
startTarget
in class RunProcess
true
if the process was startedpublic JDK getJdkDefinition()
public boolean isPlainRun()
true
if this is a plain run. A run is
considered a plain run if the FirstJavaCommandOptions
and the LastJavaCommandOptions are both null or empty array.
public boolean isSameType(JRunProcess other)
true
if this is the same type of run as the
other JRunProcess
.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |