summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwannheden2009-06-04 03:09:51 (EDT)
committer sefftinge2009-06-04 03:09:51 (EDT)
commitae99b6551f59168980bce6c8bf320ee6542e2ba3 (patch)
treeb7b388df17368e5de8fbcfa4ba9f52115ebed037
parentd9decd391b42018f421c326fe8ad8ca457e800b5 (diff)
downloadorg.eclipse.xtext-ae99b6551f59168980bce6c8bf320ee6542e2ba3.zip
org.eclipse.xtext-ae99b6551f59168980bce6c8bf320ee6542e2ba3.tar.gz
org.eclipse.xtext-ae99b6551f59168980bce6c8bf320ee6542e2ba3.tar.bz2
small cosmetical changes (parameter renames)
-rw-r--r--plugins/org.eclipse.emf.index.ui/src/org/eclipse/emf/index/ui/resource/impl/ExtensionRegistryBasedIndexerRegistry.java4
-rw-r--r--plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/ResourceIndexer.java4
-rw-r--r--plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/impl/SimpleResourceIndexerRegistryImpl.java10
3 files changed, 9 insertions, 9 deletions
diff --git a/plugins/org.eclipse.emf.index.ui/src/org/eclipse/emf/index/ui/resource/impl/ExtensionRegistryBasedIndexerRegistry.java b/plugins/org.eclipse.emf.index.ui/src/org/eclipse/emf/index/ui/resource/impl/ExtensionRegistryBasedIndexerRegistry.java
index 87808d0..3351b57 100644
--- a/plugins/org.eclipse.emf.index.ui/src/org/eclipse/emf/index/ui/resource/impl/ExtensionRegistryBasedIndexerRegistry.java
+++ b/plugins/org.eclipse.emf.index.ui/src/org/eclipse/emf/index/ui/resource/impl/ExtensionRegistryBasedIndexerRegistry.java
@@ -35,11 +35,11 @@ public class ExtensionRegistryBasedIndexerRegistry implements ResourceIndexer.Re
this.registry = registry;
}
- public void deregisterIndexer(String fileExtension, ResourceIndexer listener) {
+ public void deregisterIndexer(String fileExtension, ResourceIndexer indexer) {
throw new UnsupportedOperationException();
}
- public void registerIndexer(String fileExtension, ResourceIndexer listener) {
+ public void registerIndexer(String fileExtension, ResourceIndexer indexer) {
throw new UnsupportedOperationException();
}
diff --git a/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/ResourceIndexer.java b/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/ResourceIndexer.java
index 0a1272a..51c1610 100644
--- a/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/ResourceIndexer.java
+++ b/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/ResourceIndexer.java
@@ -23,9 +23,9 @@ public interface ResourceIndexer {
void resourceDeleted(URI resourceURI, IndexFeeder feeder);
public interface Registry {
- void registerIndexer(String fileExtension, ResourceIndexer listener);
+ void registerIndexer(String fileExtension, ResourceIndexer indexer);
- void deregisterIndexer(String fileExtension, ResourceIndexer listener);
+ void deregisterIndexer(String fileExtension, ResourceIndexer indexer);
ResourceIndexer getIndexerFor(String fileExtension);
}
diff --git a/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/impl/SimpleResourceIndexerRegistryImpl.java b/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/impl/SimpleResourceIndexerRegistryImpl.java
index dbfd166..37a71ba 100644
--- a/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/impl/SimpleResourceIndexerRegistryImpl.java
+++ b/plugins/org.eclipse.emf.index/src/org/eclipse/emf/index/resource/impl/SimpleResourceIndexerRegistryImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-s * Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
+ * Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -19,12 +19,12 @@ public class SimpleResourceIndexerRegistryImpl implements ResourceIndexer.Regist
private Map<String, ResourceIndexer> registry = new HashMap<String, ResourceIndexer>();
- public void registerIndexer(String fileExtension, ResourceIndexer factory) {
- registry.put(fileExtension, factory);
+ public void registerIndexer(String fileExtension, ResourceIndexer indexer) {
+ registry.put(fileExtension, indexer);
}
- public void deregisterIndexer(String fileExtension, ResourceIndexer factory) {
- if (registry.get(fileExtension) == factory)
+ public void deregisterIndexer(String fileExtension, ResourceIndexer indexer) {
+ if (registry.get(fileExtension) == indexer)
registry.remove(fileExtension);
}