From 6c9e1ff78b5d7613f4cff379373d69fda19812e6 Mon Sep 17 00:00:00 2001
From: Tor Norbye <tnorbye@google.com>
Date: Fri, 28 Jan 2011 17:01:49 -0800
Subject: Add support for multiple hyperlink targets

This changeset makes the Go To Declaration hyperlink resolver produce
a list of possible jump targets. Therefore, if you for example point
at @android:string/ok, you will get a popup listing all the various
string.xml files that define a translation for this string. If there
is a current configuration (which would be the case if you are
pointing at a resource url from a layout file, but not from a Java
file or a manifest file) then the declaration which best matches the
configuration is listed first, followed by everything else in
alphabetical order by the folder name.

This uses the resource maps which the IDE is already maintaining for
rendering, so it can compute the set of hyperlinks cheaply.

In addition, the hyperlink resolver now goes to the direct declaration
of the given resource. This definition can in turn reference another
resource url.

There is one exception to the instant resolution of files: ids. In
layouts it's common to define ids in place (via @+id), and these are
not available in the resource map. Therefore, if no id is found
defined in a value folder, then the search is deferred until the link
is actually clicked. The search will now search not just the base
layout folder, but all layout folders, starting with the same folder
as the link source, followed by all configuration-compatible folders,
followed by all folders.

Change-Id: I20fd4f5836e41e5a9839124b7be3a3230f5198f4
---
 eclipse/dictionary.txt | 1 +
 1 file changed, 1 insertion(+)

(limited to 'eclipse/dictionary.txt')

diff --git a/eclipse/dictionary.txt b/eclipse/dictionary.txt
index 0ce2caa..83fcce5 100644
--- a/eclipse/dictionary.txt
+++ b/eclipse/dictionary.txt
@@ -134,6 +134,7 @@ params
 pings
 placeholder
 plugin
+popup
 pre
 precompiler
 pref
-- 
cgit v1.1