diff options
author | Tor Norbye <tnorbye@google.com> | 2014-01-28 18:31:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-01-28 18:31:48 +0000 |
commit | 8434938ed08d4431f8d8dce3f62ceba797fad665 (patch) | |
tree | 2056aebc2b426355cecd47b4aa287405d6c3dcad | |
parent | ff634e3a810918595a326ca1fbaf8b8a6aaa6e26 (diff) | |
parent | 03b503c88e78d1ab9b18b077f3260fa20a3329f9 (diff) | |
download | sdk-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.java | 12 |
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); |