|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Interface which defines the protocol for translating a set of
ResourceMapping objects representing a view selection into the
complete set of resources to be operated on.
This interface is not intended to be implemented by clients. Instead, clients should
use a SynchronizationScopeManager to generate a resource mapping scope from
a set of input resource mappings.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/Team team.
ResourceMapping,
SynchronizationScopeManager| Method Summary | |
|---|---|
void |
addScopeChangeListener(ISynchronizationScopeChangeListener listener)
Add a scope change listener that will get invoked when a property of the receiver changes. |
ISynchronizationScope |
asInputScope()
Return a scope that only contains the input mappings of this scope. |
boolean |
contains(IResource resource)
Return whether the given resource is contained in this scope. |
org.eclipse.core.resources.mapping.ResourceMapping[] |
getInputMappings()
Return the array of mappings that acted as the input to the scope builder that was used to build this scope. |
org.eclipse.core.resources.mapping.ResourceMapping |
getMapping(Object modelObject)
Return the resource mapping in the scope associated with the given model object or null if there isn't one. |
org.eclipse.core.resources.mapping.ResourceMapping[] |
getMappings()
Return an array of all of the mappings to be operated on. |
org.eclipse.core.resources.mapping.ResourceMapping[] |
getMappings(String modelProviderId)
Return all the mappings to be operated on for the given model provider id. |
org.eclipse.core.resources.mapping.ModelProvider[] |
getModelProviders()
Return all the model providers that have mappings in this scope. |
IResource[] |
getRoots()
Return the resources that are the roots of this scope. |
org.eclipse.core.resources.mapping.ResourceTraversal[] |
getTraversals()
Return an array of traversals that cover the resource mappings to be operated on as returned by the getMappings() method. |
org.eclipse.core.resources.mapping.ResourceTraversal[] |
getTraversals(org.eclipse.core.resources.mapping.ResourceMapping mapping)
Return an array of traversals that cover the given resource mapping to be operated on. |
boolean |
hasAdditionalMappings()
Return whether the scope has additional mappings added to the input mappings during the scope building process. |
boolean |
hasAdditonalResources()
Return whether the scope has additional resources added due to additional resource mappings. |
void |
removeScopeChangeListener(ISynchronizationScopeChangeListener listener)
Remove a scope change listener. |
| Method Detail |
public org.eclipse.core.resources.mapping.ResourceMapping[] getInputMappings()
getMappings() method instead of this one as it
returns the complete set of mappings to be operated on.
public ISynchronizationScope asInputScope()
public org.eclipse.core.resources.mapping.ResourceMapping[] getMappings()
hasAdditionalMappings() method to determine if the two sets are
the same or not.
public org.eclipse.core.resources.mapping.ResourceTraversal[] getTraversals()
getMappings() method. The
traversals were calculated during the scope building process and cached
with the scope.
public IResource[] getRoots()
getRoots in interface IResourceMappingScopepublic boolean contains(IResource resource)
contains in interface IResourceMappingScoperesource - the resource to be tested
public void addScopeChangeListener(ISynchronizationScopeChangeListener listener)
listener - the listener to be addedpublic void removeScopeChangeListener(ISynchronizationScopeChangeListener listener)
listener - the listener to be removedpublic org.eclipse.core.resources.mapping.ResourceTraversal[] getTraversals(org.eclipse.core.resources.mapping.ResourceMapping mapping)
mapping - a resource mapping being operated on
null if the mapping is not contained in the input)public boolean hasAdditionalMappings()
public boolean hasAdditonalResources()
public org.eclipse.core.resources.mapping.ModelProvider[] getModelProviders()
public org.eclipse.core.resources.mapping.ResourceMapping[] getMappings(String modelProviderId)
modelProviderId - the id of the model provider
public org.eclipse.core.resources.mapping.ResourceMapping getMapping(Object modelObject)
null if there isn't one. This method has no knowledge
of hierarchical models so it only matches directly against the mappings
that are contained in the scope.
modelObject - the model object
|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.