|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Action com.ibm.etools.iseries.remotebuild.actions.RBAction com.ibm.etools.iseries.remotebuild.actions.ResourceAction com.ibm.etools.iseries.remotebuild.actions.CompileAction
public abstract class CompileAction
This class contains the common envelope for compile operations.
Constructor Summary | |
---|---|
CompileAction()
|
Method Summary | |
---|---|
SystemCompileCommand |
getCommand()
|
protected SystemCompileCommand |
getCommand(RBMember member)
|
ImageDescriptor |
getImageDescriptor()
|
protected List |
getMembers(RBProject project,
List modelResources)
|
SystemCompileType |
getType()
|
boolean |
isPrompting()
|
protected RBStatus |
push(AbstractISeriesProject modelProject)
Performs the push action done before the actual compilation, according to the compile preference in iSeries Projects preference page. |
protected RBStatus |
pushChangedSelected()
Pushes the selected resources to the desired target. |
protected RBStatus |
pushChanges(AbstractISeriesProject modelProject)
Pushes any changes for a single project made since the last push. |
void |
run()
|
protected abstract RBStatus |
runForProject(AbstractISeriesProject modelProject,
List modelResources,
IProgressMonitor monitor)
|
void |
setCommand(SystemCompileCommand command)
|
void |
setPrompting(boolean isPrompting)
|
void |
setType(SystemCompileType type)
|
Methods inherited from class com.ibm.etools.iseries.remotebuild.actions.ResourceAction |
---|
connect, getSelection, setSelection |
Methods inherited from class com.ibm.etools.iseries.remotebuild.actions.RBAction |
---|
getRunnableContext, getShell, getStatus, isCanceled, setCanceled, setRunnableContext, setShell, setStatus, showStatusMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompileAction()
Method Detail |
---|
protected RBStatus pushChanges(AbstractISeriesProject modelProject)
modelProject
- the project whose changes to push.
public void run()
protected RBStatus push(AbstractISeriesProject modelProject)
modelProject
- The model project to push if push changes is selected
RBStatus
of the push actionprotected RBStatus pushChangedSelected()
public ImageDescriptor getImageDescriptor()
protected abstract RBStatus runForProject(AbstractISeriesProject modelProject, List modelResources, IProgressMonitor monitor)
modelProject
- the model project for which this operation is to take placemodelResources
- the list of resources (usually members) to be compiled.monitor
- the (new) progress monitor in which to record the operation.
public SystemCompileCommand getCommand()
public boolean isPrompting()
public SystemCompileType getType()
public void setCommand(SystemCompileCommand command)
command
- the SystemCompileCommand to be used for this action. This causes
any selection associated with this action to be compile with this command. Typically
used only for a selection consisting of a single source type. If one sets this,
one should also use set the type. If one does not set this, the compile action will
determine the command to use based on the member type.public void setPrompting(boolean isPrompting)
isPrompting
- set to true if you want to have this action prompt for commands.
Subclasses may use this to determine whether to prompt or not. Typically prompting
will occur only if there is one member in the selection.public void setType(SystemCompileType type)
type
- the SystemCompileType associated with this action. This type is
modified with the last used compile command for this action. Typically used only
when the selection consistes of members with a single source type. If one
sets this one should also set the command.protected List getMembers(RBProject project, List modelResources)
project
- the RBProject to be used to "resolve" the members from the list
of model resources.modelResources
- a list of AbstractISeriesResources that will be resolved
to the model members they are or contain. These members will be used to construct
the RBMembers that will be returned.
protected SystemCompileCommand getCommand(RBMember member)
member
- the RBMember to retrieve the SystemCompileCommand for.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |