mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a pretty domChildrenDescription presentable name in the doc
This commit is contained in:
+8
-3
@@ -35,14 +35,19 @@ public class DefaultPomTargetDescriptionProvider extends PomDescriptionProvider
|
||||
if (element instanceof PsiElement) return null;
|
||||
|
||||
if (location == UsageViewTypeLocation.INSTANCE) {
|
||||
return TypeNameManager.getTypeName(element.getClass());
|
||||
return getTypeName(element);
|
||||
}
|
||||
if (location == UsageViewNodeTextLocation.INSTANCE) {
|
||||
return TypeNameManager.getTypeName(element.getClass()) + " " + StringUtil.notNullize(element instanceof PomNamedTarget ? ((PomNamedTarget)element).getName() : null, "''");
|
||||
return getTypeName(element) + " " + StringUtil.notNullize(element instanceof PomNamedTarget ? ((PomNamedTarget)element).getName() : null, "''");
|
||||
}
|
||||
if (location instanceof HighlightUsagesDescriptionLocation) {
|
||||
return TypeNameManager.getTypeName(element.getClass());
|
||||
return getTypeName(element);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static String getTypeName(PomTarget element) {
|
||||
final String s = TypeNameManager._getTypeName(element.getClass());
|
||||
return s == null ? "Element" : s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user