aboutsummaryrefslogtreecommitdiffstats
path: root/rule_api/src
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-11-21 16:12:31 -0800
committerTor Norbye <tnorbye@google.com>2011-11-23 08:56:14 -0800
commitbb54cce6ded6e5f95388b3352797bfc85e1eb838 (patch)
treefc436a4419dfafdd9a4402ca1c7b0bebfbf7bdb9 /rule_api/src
parentd1804c6668a9b8eb878b7247b9e55ddfb056128b (diff)
downloadsdk-bb54cce6ded6e5f95388b3352797bfc85e1eb838.zip
sdk-bb54cce6ded6e5f95388b3352797bfc85e1eb838.tar.gz
sdk-bb54cce6ded6e5f95388b3352797bfc85e1eb838.tar.bz2
Add package support for Rules API and Detector API
When writing custom view rules, and custom detectors, you may need access to the package name of the application (in order to produce the right namespace to look up custom attributes for). This changeset adds new methods to the two APIs such that clients can look up the application package. For lint, it also changes things such that the manifest file is always processed and information stashed in the Project object. This meant I could also remove the icon detector code to look up the manifest info directly. Change-Id: Id8eec96e2788f6d27481d7dcab0c544ea6e0a06d
Diffstat (limited to 'rule_api/src')
-rwxr-xr-xrule_api/src/com/android/ide/common/api/IClientRulesEngine.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/rule_api/src/com/android/ide/common/api/IClientRulesEngine.java b/rule_api/src/com/android/ide/common/api/IClientRulesEngine.java
index 0853378..68d7bac 100755
--- a/rule_api/src/com/android/ide/common/api/IClientRulesEngine.java
+++ b/rule_api/src/com/android/ide/common/api/IClientRulesEngine.java
@@ -242,5 +242,12 @@ public interface IClientRulesEngine {
*/
public String getUniqueId(String fqcn);
+ /**
+ * Returns the namespace URI for attributes declared and used inside the
+ * app. (This is not the Android namespace.)
+ *
+ * @return the namespace URI
+ */
+ public String getAppNameSpace();
}