aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-01-28 18:31:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-01-28 18:31:48 +0000
commit8434938ed08d4431f8d8dce3f62ceba797fad665 (patch)
tree2056aebc2b426355cecd47b4aa287405d6c3dcad
parentff634e3a810918595a326ca1fbaf8b8a6aaa6e26 (diff)
parent03b503c88e78d1ab9b18b077f3260fa20a3329f9 (diff)
downloadsdk-8434938ed08d4431f8d8dce3f62ceba797fad665.zip
sdk-8434938ed08d4431f8d8dce3f62ceba797fad665.tar.gz
sdk-8434938ed08d4431f8d8dce3f62ceba797fad665.tar.bz2
Merge "Track lint API change for suppressing using comments" into idea133
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java
index ce0202f..1f90779 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java
@@ -759,6 +759,18 @@ public class EclipseLintClient extends LintClient implements IDomParser {
}
@Override
+ public int getNodeStartOffset(@NonNull XmlContext context, @NonNull Node node) {
+ IndexedRegion region = (IndexedRegion) node;
+ return region.getStartOffset();
+ }
+
+ @Override
+ public int getNodeEndOffset(@NonNull XmlContext context, @NonNull Node node) {
+ IndexedRegion region = (IndexedRegion) node;
+ return region.getEndOffset();
+ }
+
+ @Override
public @NonNull Handle createLocationHandle(final @NonNull XmlContext context,
final @NonNull Node node) {
IStructuredModel model = (IStructuredModel) context.getProperty(MODEL_PROPERTY);