|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.model.PathEntryContainerInitializer
public abstract class PathEntryContainerInitializer
Constructor Summary | |
---|---|
PathEntryContainerInitializer()
Creates a new cpath container initializer. |
Method Summary | |
---|---|
boolean |
canUpdatePathEntryContainer(IPath containerPath,
ICProject project)
Returns true if this container initializer can be requested to perform updates
on its own container values. |
String |
getDescription(IPath containerPath,
ICProject project)
|
abstract void |
initialize(IPath containerPath,
ICProject project)
|
void |
requestPathEntryContainerUpdate(IPath containerPath,
ICProject project,
IPathEntryContainer containerSuggestion)
Request a registered container definition to be updated according to a container suggestion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathEntryContainerInitializer()
Method Detail |
---|
public abstract void initialize(IPath containerPath, ICProject project) throws CoreException
CoreException
public boolean canUpdatePathEntryContainer(IPath containerPath, ICProject project)
true
if this container initializer can be requested to perform updates
on its own container values. If so, then an update request will be performed using
PathEntryContainerInitializer#requestPathEntryContainerUpdate
/
containerPath
- the path of the container which requires to be updatedproject
- the project for which the container is to be updated
true
if the container can be updatedpublic void requestPathEntryContainerUpdate(IPath containerPath, ICProject project, IPathEntryContainer containerSuggestion) throws CoreException
IMPORTANT: In reaction to receiving an update request, a container initializer will update the corresponding
container definition (after reconciling changes) at its earliest convenience, using
CoreModel#setPathContainer(IPath, ICProject[], IPathEntryContainer[], IProgressMonitor)
.
Until it does so, the update will not be reflected in the Java Model.
In order to anticipate whether the container initializer allows to update its containers, the predicate
PathEntryContainerInitializer#canUpdatePathEntryContainer
should be used.
containerPath
- the path of the container which requires to be updatedproject
- the project for which the container is to be updatedcontainerSuggestion
- a suggestion to update the corresponding container definition
CoreException
- when CoreModel#setPathEntryContainer
would throw any.CoreModel#setPathEntryContainer(IPath, ICProject[], IPathEntryContainer[], org.eclipse.core.runtime.IProgressMonitor)
,
PathContainerInitializer#canUpdatePathContainer(IPath, ICProject)
public String getDescription(IPath containerPath, ICProject project)
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |