|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.internal.resources.ModelObject
org.eclipse.core.internal.events.BuildCommand
public class BuildCommand
The concrete implementation of ICommand. This object stores information about a particular builder, including a reference to the builder instance itself if it has been instantiated.
Constructor Summary | |
---|---|
BuildCommand()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
|
java.util.Map |
getArguments()
Returns a table of the arguments for this command, or null
if there are no arguments. |
java.util.Map |
getArguments(boolean makeCopy)
|
IncrementalProjectBuilder |
getBuilder()
|
java.lang.String |
getBuilderName()
Returns the name of the builder to run for this command, or null if the name has not been set. |
int |
hashCode()
|
boolean |
isBuilding(int trigger)
Returns whether this build command responds to the given kind of build. |
boolean |
isConfigurable()
Returns whether this command allows configuring of what kinds of builds it responds to. |
void |
setArguments(java.util.Map value)
Sets this command's arguments to be the given table of name-values pairs, or to null if there are no arguments. |
void |
setBuilder(IncrementalProjectBuilder builder)
|
void |
setBuilderName(java.lang.String value)
Sets the name of the builder to run for this command. |
void |
setBuilding(int trigger,
boolean value)
Specifies whether this build command responds to the provided kind of build. |
void |
setConfigurable(boolean value)
Sets whether this build command allows its build triggers to be configured. |
java.lang.String |
toString()
For debugging purposes only |
Methods inherited from class org.eclipse.core.internal.resources.ModelObject |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BuildCommand()
Method Detail |
---|
public java.lang.Object clone()
clone
in class ModelObject
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.util.Map getArguments()
ICommand
null
if there are no arguments. The argument names and values are both strings.
getArguments
in interface ICommand
String
value type : String
), or null
ICommand.getArguments()
public java.util.Map getArguments(boolean makeCopy)
public IncrementalProjectBuilder getBuilder()
public java.lang.String getBuilderName()
ICommand
null
if the name has not been set.
getBuilderName
in interface ICommand
null
if not setICommand.getBuilderName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isBuilding(int trigger)
ICommand
By default, build commands respond to all kinds of builds.
isBuilding
in interface ICommand
trigger
- One of the *_BUILD constants defined
on IncrementalProjectBuilder
true
if this build command responds to the specified
kind of build, and false
otherwise.ICommand.isBuilding(int)
public boolean isConfigurable()
ICommand
ICommand.isConfigurable()
attribute in its builder extension declaration. A command that is not
configurable will always respond to all kinds of builds.
isConfigurable
in interface ICommand
true
If this command allows configuration of
what kinds of builds it responds to, and false
otherwise.ICommand.setBuilding(int, boolean)
public void setArguments(java.util.Map value)
ICommand
null
if there are no arguments. The argument
names and values are both strings.
Individual builders specify their argument expectations.
Note that modifications to the arguments of a command
being used in a running builder may affect the run of that builder
but will not affect any subsequent runs. To change a command
permanently you must install the command into the relevant project
build spec using IProjectDescription.setBuildSpec(ICommand[])
.
setArguments
in interface ICommand
value
- a table of command arguments (keys and values must
both be of type String
), or null
ICommand.setArguments(Map)
public void setBuilder(IncrementalProjectBuilder builder)
public void setBuilderName(java.lang.String value)
ICommand
The builder name comes from the extension that plugs in
to the standard org.eclipse.core.resources.builders
extension point.
setBuilderName
in interface ICommand
value
- the name of the builderICommand.setBuilderName(String)
public void setBuilding(int trigger, boolean value)
ICommand
When a command is configured to not respond to a given kind of build, the builder instance will not be called when a build of that kind is initiated.
This method has no effect if this build command does not allow its build kinds to be configured.
setBuilding
in interface ICommand
trigger
- One of the *_BUILD constants defined
on IncrementalProjectBuilder
value
- true
if this build command responds to the
specified kind of build, and false
otherwise.ICommand.setBuilding(int, boolean)
public void setConfigurable(boolean value)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |