aboutsummaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorJosiah Gaskin <josiahgaskin@google.com>2011-07-18 16:54:43 -0700
committerJosiah Gaskin <josiahgaskin@google.com>2011-08-01 16:47:28 -0700
commit71a45a665af932984fd996027a9df2d09f5068aa (patch)
tree223343832539bbb988cd57c13d570292ac2c3fe0 /common/src
parent4acb7dd9a09af790eb019922f6e4bc8555c39cd6 (diff)
downloadsdk-71a45a665af932984fd996027a9df2d09f5068aa.zip
sdk-71a45a665af932984fd996027a9df2d09f5068aa.tar.gz
sdk-71a45a665af932984fd996027a9df2d09f5068aa.tar.bz2
ADT Resource Repo stores IDs and Called Once
This change makes ADT parse out @+id declarations from layout and menu files and store them in its ResourceRepository. This eliminates the need to merge in IDs from the generated R.java in order to have a complete repository of resources. In order to do this, a new type of ResourceFile is created: IdGeneratingResourceFile which is used for xml files in menu/ and layout/. Also includes an IdResourceParser which finds all the declared IDs in an XML. This change also includes a change to the ResourceMananger to process raw deltas that can be provided either from the PreCompilerBuilder or from the GlobalProjectManager. This is to avoid duplicate deltas being passed to ResourceManager when autobuilding. Change-Id: I1c705a5f5a01ce7daa3eb76f14bd6cb9e11b5248
Diffstat (limited to 'common/src')
-rw-r--r--common/src/com/android/resources/FolderTypeRelationship.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/com/android/resources/FolderTypeRelationship.java b/common/src/com/android/resources/FolderTypeRelationship.java
index 34961a3..61a6d85 100644
--- a/common/src/com/android/resources/FolderTypeRelationship.java
+++ b/common/src/com/android/resources/FolderTypeRelationship.java
@@ -53,7 +53,9 @@ public final class FolderTypeRelationship {
add(ResourceType.INTEGER, ResourceFolderType.VALUES);
add(ResourceType.INTERPOLATOR, ResourceFolderType.INTERPOLATOR);
add(ResourceType.LAYOUT, ResourceFolderType.LAYOUT);
+ add(ResourceType.ID, ResourceFolderType.LAYOUT);
add(ResourceType.MENU, ResourceFolderType.MENU);
+ add(ResourceType.ID, ResourceFolderType.MENU);
add(ResourceType.MIPMAP, ResourceFolderType.MIPMAP);
add(ResourceType.PLURALS, ResourceFolderType.VALUES);
add(ResourceType.PUBLIC, ResourceFolderType.VALUES);