IDEA-89136 Constants in annotationvalues in javadoc should be clickable

also show enum constant value in documentation
This commit is contained in:
Maxim.Mossienko
2014-09-11 12:02:42 +02:00
parent e49b7f2494
commit 48dbc5e378
6 changed files with 79 additions and 14 deletions
@@ -0,0 +1,3 @@
<html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><PRE>@<a href="psi_element://Bar"><code>Bar</code></a>(<a href="psi_element://Baz#CONST"><code>Baz.CONST</code></a>&nbsp;value = {<a href="psi_element://Baz#CONST"><code>Baz.CONST</code></a>})&nbsp;
class <b>Foo</b>
extends <a href="psi_element://java.lang.Object"><code>Object</code></a></PRE></body></html>
@@ -0,0 +1,7 @@
import java.lang.annotation.Documented;
class Text { Foo foo; }
@Bar(Baz.CONST, value = {Baz.CONST}) class Foo {}
@Documented @interface Bar {}
class Baz {
static int CONST;
}
@@ -1,3 +1,2 @@
E
E A
Enum constant ordinal: 0
<html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b><a href="psi_element://E"><code>E</code></a></b></small><PRE><a href="psi_element://E"><code>E</code></a> <b>A
Enum constant ordinal: 0</b></PRE></body></html>
@@ -0,0 +1,3 @@
E
E A
Enum constant ordinal: 0