aboutsummaryrefslogtreecommitdiff
path: root/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2011-07-05 15:06:54 -0400
committerRaphael Moll <ralf@android.com>2011-07-06 11:45:07 -0400
commit86618cc78fb2f207c477527b4413ff234f474431 (patch)
treefaddfec0559661531d8e370652cd31e6a441e595 /eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java
parent4dc629abd72fa54e6de9e48fe4f55cacfeff5474 (diff)
downloadsdk-86618cc78fb2f207c477527b4413ff234f474431.tar.gz
Integrate unknown attributes in the normal UiElementNode workflow.
Somehow this should have been the default. There's a few cases where this will allow us to simplify the code and that will be for another CL. Also fixes http://code.google.com/p/android/issues/detail?id=17762 Change-Id: Ieccd36f5f4042f414311f09339ed18fc73d7b122
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java
index 5e7ca30bd..c2e4f0fba 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/UiElementPart.java
@@ -244,7 +244,7 @@ public class UiElementPart extends ManifestSectionPart {
@Override
public boolean isDirty() {
if (mUiElementNode != null && !super.isDirty()) {
- for (UiAttributeNode ui_attr : mUiElementNode.getUiAttributes()) {
+ for (UiAttributeNode ui_attr : mUiElementNode.getAllUiAttributes()) {
if (ui_attr.isDirty()) {
markDirty();
break;
@@ -269,7 +269,7 @@ public class UiElementPart extends ManifestSectionPart {
if (mUiElementNode != null) {
mEditor.wrapEditXmlModel(new Runnable() {
public void run() {
- for (UiAttributeNode ui_attr : mUiElementNode.getUiAttributes()) {
+ for (UiAttributeNode ui_attr : mUiElementNode.getAllUiAttributes()) {
ui_attr.commit();
}
}