From 71a45a665af932984fd996027a9df2d09f5068aa Mon Sep 17 00:00:00 2001 From: Josiah Gaskin Date: Mon, 18 Jul 2011 16:54:43 -0700 Subject: 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 --- common/src/com/android/resources/FolderTypeRelationship.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/src') 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); -- cgit v1.1