| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| 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 | COMPILE_FROM_JRUNPROCESSContext marker to let build listeners know that this compilation is being launched as part of a Run. | 
| protected  boolean | compileSavedAllWhether the compiler has already done a save all as controlled by Ide environment option | 
| protected  boolean | considerDefaultRunTargetWhether to consider the default run target when determining the target Node. | 
| static java.lang.String | DATABASE_RUN_HELPERConstant for use as key argument of getValue() call. | 
| static java.lang.String | JAVA_BOOT_CLASS_PATHConstant for use as key argument of getValue() call. | 
| static java.lang.String | JAVA_CLASS_PATHConstant for use as key argument of getValue() call. | 
| static java.lang.String | JAVA_FIRST_COMMAND_OPTIONSConstant for use as key argument of getValue() call. | 
| static java.lang.String | JAVA_LAST_COMMAND_OPTIONSConstant for use as key argument of getValue() call. | 
| protected  boolean | lockCompilerWhether to lock the compiler while the process is running. | 
| static java.lang.String | RUN_COOKIE_JAVA_EMBEDDED_SERVERConstant for use as cookie argument of canRun() and getValue() methods. | 
| static java.lang.String | RUN_TYPE_DATABASEConstant for use as runType argument of canRun() and getValue() methods. | 
| static java.lang.String | RUN_TYPE_JAVAConstant for use as runType argument of canRun() and getValue() methods. | 
| static java.lang.String | RUN_TYPE_JS_MOZILLA_FIREFOXConstant for use as runType argument of canRun() and getValue() methods. | 
| static java.lang.String | RUN_TYPE_XQUERYConstant for use as runType argument of canRun() and getValue() methods. | 
| static java.lang.String | RUN_TYPE_XSLTConstant for use as runType argument of canRun() and getValue() methods. | 
| protected  RunConfiguration | runConfigurationThe RunConfiguration part of the project. | 
| protected  long | timeAfterCompileThe time after compile finished. | 
| static java.lang.String | XSLT_FIRST_COMMAND_OPTIONSConstant for use as key argument of getValue() call. | 
| static java.lang.String | XSLT_LAST_COMMAND_OPTIONSConstant for use as key argument of getValue() call. | 
| Constructor Summary | |
|---|---|
| JRunProcess()Calls JRunProcess(Context)with anullContext. | |
| 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 Projectassociated with theJRunProcess. | 
| 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 RunConfigurationassociated with theJRunProcess. | 
|  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 trueif this is a plain run. | 
|  boolean | isSameType(JRunProcess other)Returns trueif this is the same type of run as the
 otherJRunProcess. | 
| protected  LogPage | makeLogPage(boolean create)Creates the RunLogPagefor 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 java.lang.String COMPILE_FROM_JRUNPROCESS
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_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
| Constructor Detail | 
|---|
public JRunProcess()
JRunProcess(Context) with a null
 Context.
public JRunProcess(Context context)
runConfiguration.
 
context - the context for starting the process| Method 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 RunProcessstarterFactorySubClass - the chosen StarterFactory
 must extend this class
protected boolean checkStarter(Starter starter,
                               java.util.List errors)
JStarter.
checkStarter in class RunProcesspublic java.io.File getStartDirectory()
getStartDirectory in class RunProcesspublic final void start()
SwingUtilities.invokeLater(java.lang.Runnable) is used to call
 the super.start method.
start in class RunProcessprotected boolean compile()
This method is called on a non-event thread.
true if there are no compiler errorsprotected LogPage makeLogPage(boolean create)
RunProcessRunLogPage for this process.
 
makeLogPage in class RunProcessprotected boolean startTarget()
 Calls the super.startTarget method.
startTarget in class RunProcesstrue 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 button
protected 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 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||