summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-03-11 05:27:34 (EDT)
committer sefftinge2009-03-11 05:27:34 (EDT)
commitafaf4f1ed4192f76a600211128f28650f3a6ee4f (patch)
treecadc0b6532035e6a77fd2057496eea24e9a1e8ce
parent95a37d500eb0d5a3188f5948347f177807c9f8dc (diff)
downloadorg.eclipse.xtext-afaf4f1ed4192f76a600211128f28650f3a6ee4f.zip
org.eclipse.xtext-afaf4f1ed4192f76a600211128f28650f3a6ee4f.tar.gz
org.eclipse.xtext-afaf4f1ed4192f76a600211128f28650f3a6ee4f.tar.bz2
Refactoring: Rename Filter.matches(..) to Filter.accept(..)
-rw-r--r--plugins/org.eclipse.xtext.xtend/src/org/eclipse/xtext/xtend/crossref/AbstractXtendScopeProvider.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/FilteringIteratorTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.xtext.xtend/src/org/eclipse/xtext/xtend/crossref/AbstractXtendScopeProvider.java b/plugins/org.eclipse.xtext.xtend/src/org/eclipse/xtext/xtend/crossref/AbstractXtendScopeProvider.java
index 957effa..653b3ae 100644
--- a/plugins/org.eclipse.xtext.xtend/src/org/eclipse/xtext/xtend/crossref/AbstractXtendScopeProvider.java
+++ b/plugins/org.eclipse.xtext.xtend/src/org/eclipse/xtext/xtend/crossref/AbstractXtendScopeProvider.java
@@ -63,7 +63,7 @@ public abstract class AbstractXtendScopeProvider extends AbstractXtendService im
.singletonList(context));
final Collection<String> names = new HashSet<String>(scopedElements.size());
return new XtendScope(list(filter(scopedElements, new Filter<IScopedElement>() {
- public boolean matches(IScopedElement param) {
+ public boolean accept(IScopedElement param) {
boolean result = reference.getEReferenceType().isSuperTypeOf(param.element().eClass());
if (result) {
result = names.add(param.name());
@@ -104,7 +104,7 @@ public abstract class AbstractXtendScopeProvider extends AbstractXtendService im
public IScopedElement getScopedElement(final EObject element) {
Iterable<IScopedElement> allMatches = filter(scopedElements, new Filter<IScopedElement>() {
- public boolean matches(IScopedElement param) {
+ public boolean accept(IScopedElement param) {
return param.element().equals(element);
}
});
diff --git a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/FilteringIteratorTest.java b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/FilteringIteratorTest.java
index 131082f..0a99136 100644
--- a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/FilteringIteratorTest.java
+++ b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/FilteringIteratorTest.java
@@ -33,7 +33,7 @@ public class FilteringIteratorTest extends TestCase implements Filter<String> {
list = new ArrayList<String>();
}
- public boolean matches(String param) {
+ public boolean accept(String param) {
return param.equals(matchMe);
}