public abstract class BuildSystem extends Service
BuildSystem
service allows extension writers to
initiate a build and query information from the build system.Modifier | Constructor and Description |
---|---|
protected |
BuildSystem() |
Modifier and Type | Method and Description |
---|---|
void |
addBuildListener(BuildListener l)
Add an
BuildListener . |
abstract void |
build(Context context)
Start a build of the objects selected in the
Context . |
static BuildSystem |
getBuildSystem()
Gets the build system implementation.
|
protected java.util.Collection |
getListeners()
Get all listeners.
|
protected boolean |
hasListeners()
Get whether there are any registered listeners.
|
protected void |
initialize()
Initializes the build system manager.
|
abstract boolean |
isBuilding()
Check if the build system is currently building something.
|
void |
removeBuildListener(BuildListener l)
Remove an
BuildListener . |
cloneLoadedServices, getService, resetAllServices, setLoadedServices
protected final boolean hasListeners()
protected final java.util.Collection getListeners()
protected void initialize()
This implementation retrieves and registers listeners obtained from the build system hook handler.
initialize
in class Service
public final void addBuildListener(BuildListener l)
BuildListener
.l
- the BuildListener
to add.public final void removeBuildListener(BuildListener l)
BuildListener
.l
- The BuildListener
to remove.public abstract void build(Context context)
Context
. This
method starts the build in another thread and returns immediately.context
- the objects returned by calling the
Context.getSelection()
method are build using the classpath
and source path information provided by the context project.public abstract boolean isBuilding()
true
is a build is in progress.public static BuildSystem getBuildSystem()