diff options
author | Tor Norbye <tnorbye@google.com> | 2011-04-29 17:30:01 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2011-05-04 13:04:49 -0700 |
commit | 66477488e0ead2c0480b4414b8beec11adb673f1 (patch) | |
tree | d477f7eba6471e25827af95f2b5bd5aba6fb4d60 /swtmenubar | |
parent | c0e13dceb905f55092f89ab23831e6021209c8ec (diff) | |
download | sdk-66477488e0ead2c0480b4414b8beec11adb673f1.zip sdk-66477488e0ead2c0480b4414b8beec11adb673f1.tar.gz sdk-66477488e0ead2c0480b4414b8beec11adb673f1.tar.bz2 |
Merge "Improve custom view search and filtering"
This change improves the code which identifies custom views in the
project.
It will now filter out a number of "false" matches:
- Classes that were only defined in a javadoc (these are included in
Eclipse type hierarchy search results)
- Anonymous classes
- Classes that extend View, but do not define one of the 3 base View
constructors:
View(Context context)
View(Context context, AttributeSet attrs)
View(Context context, AttributeSet attrs, int defStyle)
We can only instantiate custom views with one or more of these
constructor signatures at designtime.
It also fixes two additional bugs:
- It changes the search flags passed to the search engine which makes
it now find custom views that are static innerclasses.
- It fixes a bug in handling view descriptors which made the custom
view palette not work at all in some projects (in some case the
descriptor would be null, which caused an NPE which caused the whole
palette initialization to bail.) This is the bug which made me dig
through the custom view code and discover the above problems too.
(cherry picked from commit 916b78d9e78cb446d72de6cba30f2f395728f612)
Change-Id: I5a80e86dccb8b7fd339919e79e7ed59cd6357819
Diffstat (limited to 'swtmenubar')
0 files changed, 0 insertions, 0 deletions