|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.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 ToolButton |
addProcessActionButtonToToolbar(IdeAction action, java.lang.String group) Add a process related action as a button on the toolbar. |
protected boolean |
addProcessActionButtonToToolbar(javax.swing.JComponent actionButton, java.lang.String group) Add a process related action button on the toolbar. |
protected boolean |
checkStarter(Starter starter, java.util.List errors) Returns whether the given starter can really be used to start a process. |
protected void |
clearProcessActionButtonsFromToolbar() Remove any process related action buttons from the toolbar |
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 . |
protected Toolbar |
getLogPageToolbar() Get the toolbar |
protected java.lang.String |
getProcessActionButtonGroup(javax.swing.JComponent actionButton) Get the group with which this action button is associated |
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. |
protected void |
setProcessActionButtonGroup(javax.swing.JComponent actionButton, java.lang.String group) Set the group with which this action button is associated |
protected void |
showLogPageToolbar(boolean visible) Adjust the visibility of the toolbar |
protected void |
showProcessActionButtonsOnToolbar(java.lang.String group, boolean visible) Adjust the visibility of toolbar action buttons in a certain group |
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
.protected void showLogPageToolbar(boolean visible)
visible
- If true, toolbar will be made visibleprotected Toolbar getLogPageToolbar()
protected ToolButton addProcessActionButtonToToolbar(IdeAction action, java.lang.String group)
action
- The action for the buttongroup
- If not null, the button is added to the named group, and a group of buttons can be shown/hidden with a call to showProcessActionButtonsOnToolbar(group)protected boolean addProcessActionButtonToToolbar(javax.swing.JComponent actionButton, java.lang.String group)
actionButton
- The button to addgroup
- If not null, the button is added to the named group, and a group of buttons can be shown/hidden with a call to showProcessActionButtonsOnToolbar(group)protected void setProcessActionButtonGroup(javax.swing.JComponent actionButton, java.lang.String group)
actionButton
- The action buttongroup
- If not null, the button is added to the named group, and a group of buttons can be shown/hidden with a call to showProcessActionButtonsOnToolbar(group). If null, the button is removed from any groupprotected java.lang.String getProcessActionButtonGroup(javax.swing.JComponent actionButton)
actionButton
- The action buttonprotected void showProcessActionButtonsOnToolbar(java.lang.String group, boolean visible)
group
- The group whose buttons should be shown/hidden, which cannot be null.visible
- If true show the buttons, otherwise hide itprotected void clearProcessActionButtonsFromToolbar()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |