json doc support same name | json 注释支持同名
This commit is contained in:
11
README.md
11
README.md
@@ -6,21 +6,14 @@ English Notes:
|
|||||||
<li>Show javadoc comments at the Project view Tree structure.
|
<li>Show javadoc comments at the Project view Tree structure.
|
||||||
<li>Show javadoc comments at the end-of-line.
|
<li>Show javadoc comments at the end-of-line.
|
||||||
<li>Show javadoc comments at "xx ClassNameOrSimpleName.json".
|
<li>Show javadoc comments at "xx ClassNameOrSimpleName.json".
|
||||||
<li>One of the above features can be turned off in<br>
|
<li>Config: settings -> Tools -> Show Comment Global/Project
|
||||||
settings -> Tools -> Show Comment Global
|
|
||||||
<li>Font color of end-of-line comments can be modified in <br>
|
|
||||||
settings -> Tools -> Show Comment Global
|
|
||||||
<li>Class name prefix filter of end-of-line comment can be modified in<br>
|
|
||||||
settings -> Tools -> Show Comment Project
|
|
||||||
</ul>
|
</ul>
|
||||||
Chinese Notes:
|
Chinese Notes:
|
||||||
<ul>
|
<ul>
|
||||||
<li>在结构树显示 文档注释。
|
<li>在结构树显示 文档注释。
|
||||||
<li>在行末尾显示 文档注释。
|
<li>在行末尾显示 文档注释。
|
||||||
<li>支持 "xx 类全名或简名.json"。
|
<li>支持 "xx 类全名或简名.json"。
|
||||||
<li>可以在设置中 关闭 上面其中一个功能。
|
<li>修改配置:设置 -> 工具 -> Show Comment Global/Project
|
||||||
<li>可以在设置中 修改 行末注释 的字体颜色。
|
|
||||||
<li>可以在设置中 修改 行末注释 的类名前缀过滤。
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
English Change Notes:
|
English Change Notes:
|
||||||
|
|||||||
@@ -46,13 +46,17 @@ public class JsonDocUtils {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (level == 0) {
|
if (level == 0) {
|
||||||
return DocUtils.srcOrByteCodeDoc(psiField);
|
PsiDocComment docComment = DocUtils.srcOrByteCodeDoc(psiField);
|
||||||
}
|
if (docComment != null) {
|
||||||
String classFullName = toClassFullName(psiField);
|
return docComment;
|
||||||
PsiClass[] classes = PsiClassUtils.fullNameToClass(classFullName, project);
|
}
|
||||||
PsiDocComment docComment = doc(classes, project, jsonPath, level - 1);
|
} else {
|
||||||
if (docComment != null) {
|
String classFullName = toClassFullName(psiField);
|
||||||
return docComment;
|
PsiClass[] classes = PsiClassUtils.fullNameToClass(classFullName, project);
|
||||||
|
PsiDocComment docComment = doc(classes, project, jsonPath, level - 1);
|
||||||
|
if (docComment != null) {
|
||||||
|
return docComment;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -9,21 +9,14 @@ English Notes:
|
|||||||
<li>Show javadoc comments at the Project view Tree structure.
|
<li>Show javadoc comments at the Project view Tree structure.
|
||||||
<li>Show javadoc comments at the end-of-line.
|
<li>Show javadoc comments at the end-of-line.
|
||||||
<li>Show javadoc comments at "xx ClassNameOrSimpleName.json".
|
<li>Show javadoc comments at "xx ClassNameOrSimpleName.json".
|
||||||
<li>One of the above features can be turned off in<br>
|
<li>Config: settings -> Tools -> Show Comment Global/Project
|
||||||
settings -> Tools -> Show Comment Global
|
|
||||||
<li>Font color of end-of-line comments can be modified in <br>
|
|
||||||
settings -> Tools -> Show Comment Global
|
|
||||||
<li>Class name prefix filter of end-of-line comment can be modified in<br>
|
|
||||||
settings -> Tools -> Show Comment Project
|
|
||||||
</ul>
|
</ul>
|
||||||
Chinese Notes:
|
Chinese Notes:
|
||||||
<ul>
|
<ul>
|
||||||
<li>在结构树显示 文档注释。
|
<li>在结构树显示 文档注释。
|
||||||
<li>在行末尾显示 文档注释。
|
<li>在行末尾显示 文档注释。
|
||||||
<li>支持 "xx 类全名或简名.json"。
|
<li>支持 "xx 类全名或简名.json"。
|
||||||
<li>可以在设置中 关闭 上面其中一个功能。
|
<li>修改配置:设置 -> 工具 -> Show Comment Global/Project
|
||||||
<li>可以在设置中 修改 行末注释 的字体颜色。
|
|
||||||
<li>可以在设置中 修改 行末注释 的类名前缀过滤。
|
|
||||||
</ul>
|
</ul>
|
||||||
]]></description>
|
]]></description>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user