From d91de0dae79d468a9a7b11b2e19721f12fedd861 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Tue, 14 Feb 2012 16:58:08 -0800 Subject: Add suppress-this to Lint View, and preserve tree expansion state This changeset adds a new toolbar button to the Lint View: "Suppress this error with an annotation/attribute". This is enabled when the selected warning is for a Java or XML file, and it adds the annotation or suppress attribute in the relevant source file for the warning. It also adds some handling to preserve the expanded tree state in the Lint View when the view is refreshed, which happens automatically whenever a fix is applied or a file is saved and the marker set changes. Change-Id: I393ee5f6e062a0e08a7e9457a03f37d8899a4df8 --- .../icons/ignore-all-disabled.png | Bin 332 -> 392 bytes .../com.android.ide.eclipse.adt/icons/ignore-all.png | Bin 509 -> 635 bytes .../icons/ignore-this-disabled.png | Bin 0 -> 332 bytes .../com.android.ide.eclipse.adt/icons/ignore-this.png | Bin 0 -> 509 bytes 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this-disabled.png create mode 100644 eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this.png (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/icons') diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all-disabled.png b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all-disabled.png index 0576450..56f0098 100644 Binary files a/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all-disabled.png and b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all-disabled.png differ diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all.png b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all.png index 3e66d82..581e323 100644 Binary files a/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all.png and b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-all.png differ diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this-disabled.png b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this-disabled.png new file mode 100644 index 0000000..0576450 Binary files /dev/null and b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this-disabled.png differ diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this.png b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this.png new file mode 100644 index 0000000..3e66d82 Binary files /dev/null and b/eclipse/plugins/com.android.ide.eclipse.adt/icons/ignore-this.png differ -- cgit v1.1