rename BaseResourceReference -> AndroidResourceReference
authorEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>
Sun, 29 Jan 2012 16:15:47 +0000 (20:15 +0400)
committerEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>
Sun, 29 Jan 2012 16:17:30 +0000 (20:17 +0400)
plugins/android/src/org/jetbrains/android/dom/converters/AndroidResourceReference.java [moved from plugins/android/src/org/jetbrains/android/dom/converters/BaseResourceReference.java with 93% similarity]
plugins/android/src/org/jetbrains/android/dom/converters/ResourceReferenceConverter.java

similarity index 93%
rename from plugins/android/src/org/jetbrains/android/dom/converters/BaseResourceReference.java
rename to plugins/android/src/org/jetbrains/android/dom/converters/AndroidResourceReference.java
index d095019c2f1102458ebc54b4dca6d96ad5ca9252..552784f5432a87612084921260218662693b1cd6 100644 (file)
@@ -41,14 +41,14 @@ import java.util.List;
 /**
  * @author coyote
  */
-public class BaseResourceReference extends PsiReferenceBase.Poly<XmlElement> {
+public class AndroidResourceReference extends PsiReferenceBase.Poly<XmlElement> {
   private final GenericDomValue<ResourceValue> myValue;
   private final AndroidFacet myFacet;
   private final ResourceValue myResourceValue;
 
-  public BaseResourceReference(@NotNull GenericDomValue<ResourceValue> value,
-                               @NotNull AndroidFacet facet,
-                               @NotNull ResourceValue resourceValue) {
+  public AndroidResourceReference(@NotNull GenericDomValue<ResourceValue> value,
+                                  @NotNull AndroidFacet facet,
+                                  @NotNull ResourceValue resourceValue) {
     super(DomUtil.getValueElement(value), null, true);
     myValue = value;
     myFacet = facet;
@@ -100,9 +100,9 @@ public class BaseResourceReference extends PsiReferenceBase.Poly<XmlElement> {
   @Override
   public ResolveResult[] multiResolve(boolean incompleteCode) {
     return ResolveCache.getInstance(myElement.getProject())
-      .resolveWithCaching(this, new ResolveCache.PolyVariantResolver<BaseResourceReference>() {
+      .resolveWithCaching(this, new ResolveCache.PolyVariantResolver<AndroidResourceReference>() {
         @Override
-        public ResolveResult[] resolve(BaseResourceReference reference, boolean incompleteCode) {
+        public ResolveResult[] resolve(AndroidResourceReference reference, boolean incompleteCode) {
           return resolveInner();
         }
       }, false, incompleteCode);
index 5371876cea47724926be4287b752067601a9823f..28d55346b78c4dcdeaaff91837d417adcac6224c 100644 (file)
@@ -294,7 +294,7 @@ public class ResourceReferenceConverter extends ResolvingConverter<ResourceValue
           if (resValue.getPackage() == null && "+id".equals(resValue.getResourceType())) {
             return PsiReference.EMPTY_ARRAY;
           }
-          return new PsiReference[] {new BaseResourceReference(value, facet, resValue)};
+          return new PsiReference[] {new AndroidResourceReference(value, facet, resValue)};
         }
       }
     }