|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.model.DefaultSubDirtyable
oracle.jdeveloper.runner.RunConfiguration
The RunConfiguration class specifies details about how a Java process should be started.
Field Summary | |
static java.lang.String |
DATA_KEY
Use DATA_KEY to get the run configuration from a project. |
Constructor Summary | |
RunConfiguration()
Default constructor. |
|
RunConfiguration(RunConfiguration runConfiguration)
Copy constructor. |
Method Summary | |
java.lang.Object |
copyTo(java.lang.Object object)
Copies this RunConfiguration's values to the object
RunConfiguration. |
protected void |
copyToImpl(RunConfiguration copy)
Copies this RunConfiguration's values to the copy
RunConfiguration. |
boolean |
equals(java.lang.Object o)
Returns true if this RunConfiguration equals the o
RunConfiguration. |
protected boolean |
equalsImpl(RunConfiguration rc)
Returns true if this RunConfiguration equals the rc
RunConfiguration. |
boolean |
getAlwaysUseTarget()
Deprecated. Use isRunActiveFile instead. |
java.lang.String |
getConnectionName()
Returns the database connection name. |
java.lang.String |
getJavaOptions()
Returns the java options. |
java.lang.String |
getProgramArguments()
Returns the program arguments. |
java.net.URL |
getRunDirectoryURL()
Returns the working directory |
java.net.URL |
getTargetURL()
Returns the target URL. |
java.lang.String |
getVMName()
This method is for internal use only and should not be called directly by an addin. |
java.lang.String |
getVMName(JDK jdk)
Returns the name of the Virtual Machine. |
java.lang.String |
getVMName(JDK jdk,
JProject project)
Returns the name of the Virtual Machine. |
boolean |
isAllowInput()
Returns whether the user should be able to enter input for System.in. |
boolean |
isClearLogBeforeRun()
Returns whether the log page should be cleared before running. |
boolean |
isCompileBeforeRun()
Returns whether the project should be compiled before running. |
boolean |
isLogCommand()
Returns whether the command should be logged. |
boolean |
isLogError()
Returns whether System.err should be redirected to the log page. |
boolean |
isLogExit()
Returns whether the exit message should be logged. |
boolean |
isLogOutput()
Returns whether System.out should be redirected to the log page. |
boolean |
isRunActiveFile()
Returns whether the active file should be run. |
boolean |
isUseProxy()
Returns whether the proxy options should be used. |
void |
setAllowInput(boolean allowInput)
Sets whether the user should be able to enter input for System.in. |
void |
setAlwaysUseTarget(boolean alwaysUseTarget)
Deprecated. Use setRunActiveFile instead. |
void |
setClearLogBeforeRun(boolean clearLogBeforeRun)
Sets whether the log page should be cleared before running. |
void |
setCompileBeforeRun(boolean compileBeforeRun)
Sets whether the project should be compiled before running. |
void |
setConnectionName(java.lang.String connectionName)
Sets the database connection name. |
void |
setJavaOptions(java.lang.String javaOptions)
Sets the java options. |
void |
setLogCommand(boolean logCommand)
Sets whether the command should be logged. |
void |
setLogError(boolean logError)
Sets whether System.err should be redirected to the log page. |
void |
setLogExit(boolean logExit)
Sets whether the exit message should be logged. |
void |
setLogOutput(boolean logOutput)
Sets whether System.out should be redirected to the log page. |
void |
setProgramArguments(java.lang.String programArguments)
Sets the program arguments. |
void |
setRunActiveFile(boolean runActiveFile)
Sets whether the active file should be run. |
void |
setRunDirectoryURL(java.net.URL runDirectoryURL)
Sets the working directory |
void |
setTargetURL(java.net.URL targetURL)
Sets the target URL. |
void |
setUseProxy(boolean useProxy)
Sets whether the proxy options should be used. |
void |
setVMName(java.lang.String vmName)
Sets the name of the Virtual Machine. |
boolean |
usingClassic(JDK jdk)
Returns true if the Virtual Machine is classic. |
boolean |
usingMinimal(JDK jdk)
Returns true if the Virtual Machine is minimal. |
boolean |
usingOJVM(JDK jdk)
Returns true if the Virtual Machine is ojvm. |
boolean |
usingVanilla(JDK jdk)
Returns true if the Virtual Machine is vanilla. |
Methods inherited from class oracle.ide.model.DefaultSubDirtyable |
getOwner, isDirty, markDirty, setOwner |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DATA_KEY
DATA_KEY
to get the run configuration from a project.
JProject.getActiveConfigDataByName(java.lang.String)
Constructor Detail |
public RunConfiguration()
public RunConfiguration(RunConfiguration runConfiguration)
Method Detail |
public java.lang.Object copyTo(java.lang.Object object)
object
RunConfiguration.
copyTo
in interface Copyable
object
- the copy destination
protected final void copyToImpl(RunConfiguration copy)
copy
RunConfiguration.
copy
- the copy destinationpublic java.net.URL getRunDirectoryURL()
public void setRunDirectoryURL(java.net.URL runDirectoryURL)
public java.lang.String getVMName()
Returns the name of the Virtual Machine. This method might return
null
, meaning that the user has not chosen a VM.
getVMName(JDK)
,
getVMName(JDK,JProject)
public java.lang.String getVMName(JDK jdk)
Verifies that the VM is valid for the JDK.
If the VM is not valid, returns the default VM.
jdk
- the JDKgetVMName(JDK,JProject)
public java.lang.String getVMName(JDK jdk, JProject project)
Verifies the the VM is valid for the JDK.
If the VM is not valid, changes the VM to the default VM and marks the project dirty.
jdk
- the JDKproject
- the projectpublic void setVMName(java.lang.String vmName)
public java.lang.String getJavaOptions()
public void setJavaOptions(java.lang.String javaOptions)
public boolean isUseProxy()
public void setUseProxy(boolean useProxy)
public java.net.URL getTargetURL()
public void setTargetURL(java.net.URL targetURL)
public boolean isRunActiveFile()
public void setRunActiveFile(boolean runActiveFile)
public boolean getAlwaysUseTarget()
public void setAlwaysUseTarget(boolean alwaysUseTarget)
public java.lang.String getProgramArguments()
public void setProgramArguments(java.lang.String programArguments)
public boolean isCompileBeforeRun()
public void setCompileBeforeRun(boolean compileBeforeRun)
public boolean isClearLogBeforeRun()
public void setClearLogBeforeRun(boolean clearLogBeforeRun)
public boolean isLogCommand()
public void setLogCommand(boolean logCommand)
public boolean isLogOutput()
public void setLogOutput(boolean logOutput)
public boolean isLogError()
public void setLogError(boolean logError)
public boolean isAllowInput()
public void setAllowInput(boolean allowInput)
public boolean isLogExit()
public void setLogExit(boolean logExit)
public java.lang.String getConnectionName()
public void setConnectionName(java.lang.String connectionName)
public boolean equals(java.lang.Object o)
o
RunConfiguration.
protected final boolean equalsImpl(RunConfiguration rc)
rc
RunConfiguration.
public boolean usingOJVM(JDK jdk)
public boolean usingMinimal(JDK jdk)
public boolean usingVanilla(JDK jdk)
public boolean usingClassic(JDK jdk)
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.