Interface ISourceContainerTypeDelegate
- All Known Subinterfaces:
ISourceContainerType
- All Known Implementing Classes:
AbstractSourceContainerTypeDelegate
public interface ISourceContainerTypeDelegate
A source container type delegate represents a kind of container of source code.
For example, a source container type may be a project or a directory. A specific
project or directory is represented by an instance of a source container type,
which is called a source container (
ISourceContainer
).
A source container type delegate is contributed via the
sourceContainerTypes
extension point.
Clients may implement this interface.
- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateSourceContainer
(String memento) Creates and returns a new source container of this type corresponding to the given memento.getMemento
(ISourceContainer container) Constructs and returns a memento for the given source container.
-
Method Details
-
createSourceContainer
Creates and returns a new source container of this type corresponding to the given memento.- Parameters:
memento
- a memento for a source container of this source container type- Returns:
- a source container corresponding to the given memento
- Throws:
CoreException
- if unable to construct a source container based on the given memento
-
getMemento
Constructs and returns a memento for the given source container. A memento can be used to reconstruct a source container.- Parameters:
container
- The container for which a memento should be created. The container must of this source container type.- Returns:
- a memento for the source container
- Throws:
CoreException
- if unable to create a memento
-