|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.compile.SystemCompilableSource
When a user selects a remote compilable source member, and then one of the compile commands from the cascading compile popup menu action, an instance of this class is created to manage the actual running of the compile command against the selected source.
Field Summary | |
---|---|
protected SystemCompileCommand |
compileCmd
|
static String |
Copyright
|
protected Object |
firstSelection
|
protected boolean |
isPrompt
|
protected ISystemRemoteElementAdapter |
rmtAdapter
|
protected Shell |
shell
|
protected Viewer |
viewer
|
Constructor Summary | |
---|---|
SystemCompilableSource(Shell shell,
Object firstSelection,
SystemCompileCommand compileCmd,
boolean isPrompt,
Viewer viewer)
Constructor for SystemCompilableSource. |
Method Summary | |
---|---|
protected RemoteCmdSubSystem |
getCommandSubSystem()
Return the command subsystem for the remote connection. |
protected SystemCompileCommand |
getCompileCommand()
Return the compile command to compile the selected source object with. |
protected ISystemRemoteElementAdapter |
getRemoteAdapter()
Return the remote adapter for the currently selected compilable remote source object |
protected Object |
getSelectedObject()
Return the selected compilable remote source object we are to compile |
Shell |
getShell()
Return the shell as set in the constructor. |
String |
getSourceType()
Return the source type of this remote object |
protected String |
getSubstitutedString(SystemCompileCommand compileCmd,
Object firstSelection,
ISystemCompileCommandSubstitutor substitutor)
Given the compile command, the selected source object, do the variable substitution. |
protected SystemCmdSubstVarList |
getSubstitutionVariableList()
Return the substitution variable list. |
protected ISystemCompileCommandSubstitutor |
getSubstitutor()
Return the substitutor for doing variable substitution. |
protected SubSystem |
getSubSystem()
Return the subsystem which is responsible for producing the remote object. |
SystemConnection |
getSystemConnection()
Return the system connection from the which the selected object came from |
protected String |
internalPromptCompileCommand(String substitutedCompileCommand)
When running a compile command from the prompt menu, we prompt the command. |
protected boolean |
internalRunCompileCommand(String compileCmd)
After the substituting and the prompting, it is now time to the remote running of the fully resolved compile command. |
protected boolean |
isPrompt()
Return if the compile command is to be prompted or not |
void |
run()
The run() method for running code in a thread. |
boolean |
runCompileCommand()
Run the compile command against the selected source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
protected Object firstSelection
protected boolean isPrompt
protected SystemCompileCommand compileCmd
protected ISystemRemoteElementAdapter rmtAdapter
protected Shell shell
protected Viewer viewer
Constructor Detail |
public SystemCompilableSource(Shell shell, Object firstSelection, SystemCompileCommand compileCmd, boolean isPrompt, Viewer viewer)
shell
- - the current shell, in case we need it for the prompt dialog or error messages.firstSelection
- - the selected compilable source membercompileCmd
- - the Compile Command that is to be run against the selected compilable source memberisPrompt
- - true if the user choose the flavor of the action to prompt the compile commandviewer
- - the viewer that originated the compile actionMethod Detail |
public Shell getShell()
protected Object getSelectedObject()
protected SystemCompileCommand getCompileCommand()
protected boolean isPrompt()
protected ISystemRemoteElementAdapter getRemoteAdapter()
public String getSourceType()
public SystemConnection getSystemConnection()
protected SubSystem getSubSystem()
protected RemoteCmdSubSystem getCommandSubSystem()
protected SystemCmdSubstVarList getSubstitutionVariableList()
protected ISystemCompileCommandSubstitutor getSubstitutor()
public boolean runCompileCommand()
protected String getSubstitutedString(SystemCompileCommand compileCmd, Object firstSelection, ISystemCompileCommandSubstitutor substitutor)
return compileCmd.doVariableSubstitution(firstSelection, substitutor);
protected boolean internalRunCompileCommand(String compileCmd)
Must be overridden.
protected String internalPromptCompileCommand(String substitutedCompileCommand)
By default, this uses the SystemPromptCompileCommandDialog dialog to prompt the user to change the compile command.
public void run()
run
in interface Runnable
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |