Class ModelInclusionTesterRegistry
java.lang.Object
org.eclipse.emf.compare.ide.logical.ModelInclusionTesterRegistry
Registry managing the model inclusion testers dependency registered through extension point
org.eclipse.emf.compare.ide.modelInclusionTester
.- Since:
- 3.4.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(String key, IModelInclusionTester modelInclusionTester) Adds a the specifiedmodelInclusionTester
.boolean
anyTesterIncludes
(org.eclipse.core.resources.IFile file) Specifies whether any of the registeredmodel inclusion testers
includes the specifiedfile
.void
clear()
Clears the registeredmodel inclusion testers
.Returns the model inclusion testers of this registry.boolean
Removes the model inclusion tester with the specifiedkey
.
-
Constructor Details
-
ModelInclusionTesterRegistry
public ModelInclusionTesterRegistry()
-
-
Method Details
-
getModelInclusionTesters
Returns the model inclusion testers of this registry.- Returns:
- The model inclusion testers.
-
add
Adds a the specifiedmodelInclusionTester
.- Parameters:
key
- The key to store it with. Must not be null.modelInclusionTester
- The model inclusion tester. Must not be null.
-
remove
Removes the model inclusion tester with the specifiedkey
.- Parameters:
key
- The key of the model inclusion tester to be removed.- Returns:
true
if the tester was removed,false
if there was no tester with the specifiedkey
.
-
clear
public void clear()Clears the registeredmodel inclusion testers
.This method is mainly intended to be used for unit testing.
-
anyTesterIncludes
public boolean anyTesterIncludes(org.eclipse.core.resources.IFile file) Specifies whether any of the registeredmodel inclusion testers
includes the specifiedfile
.- Parameters:
file
- The file to test.- Returns:
true
if any of the testers includes the specifiedfile
,false
otherwise.
-