public class ModelInclusionTesterRegistry extends Object
org.eclipse.emf.compare.ide.modelInclusionTester
.Constructor and Description |
---|
ModelInclusionTesterRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
IModelInclusionTester modelInclusionTester)
Adds a the specified
modelInclusionTester . |
boolean |
anyTesterIncludes(org.eclipse.core.resources.IFile file)
Specifies whether any of the registered
model inclusion testers includes
the specified file . |
void |
clear()
Clears the registered
model inclusion testers . |
Collection<IModelInclusionTester> |
getModelInclusionTesters()
Returns the model inclusion testers of this registry.
|
boolean |
remove(String key)
Removes the model inclusion tester with the specified
key . |
public Collection<IModelInclusionTester> getModelInclusionTesters()
public void add(String key, IModelInclusionTester modelInclusionTester)
modelInclusionTester
.key
- The key to store it with. Must not be null.modelInclusionTester
- The model inclusion tester. Must not be null.public boolean remove(String key)
key
.key
- The key of the model inclusion tester to be removed.true
if the tester was removed, false
if there was no tester with the
specified key
.public void clear()
model inclusion testers
.
This method is mainly intended to be used for unit testing.
public boolean anyTesterIncludes(org.eclipse.core.resources.IFile file)
model inclusion testers
includes
the specified file
.file
- The file to test.true
if any of the testers includes the specified file
,
false
otherwise.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.