'Problems' view in 'Project Structure': corrected message about unused library

This commit is contained in:
nik
2016-02-02 11:10:25 +03:00
parent db3ea89d4f
commit e1cd287a09
2 changed files with 10 additions and 2 deletions
@@ -167,8 +167,12 @@ public class ErrorPaneConfigurable extends JPanel implements Configurable, Dispo
description = problemDescription.getDescription();
if (description == null) {
ProjectStructureElement place = problemDescription.getPlace().getContainingElement();
description = place.getTypeName() + " <a href='http://navigate/" + i + "'>" + XmlStringUtil.convertToHtmlContent(place.getPresentableName())
+ "</a>: " + XmlStringUtil.convertToHtmlContent(problemDescription.getMessage(false));
description = XmlStringUtil.convertToHtmlContent(problemDescription.getMessage(false));
if (problemDescription.canShowPlace()) {
description = place.getTypeName() + " <a href='http://navigate/" + i + "'>"
+ XmlStringUtil.convertToHtmlContent(place.getPresentableName()) + "</a>: "
+ StringUtil.decapitalize(description);
}
}
else {
description = XmlStringUtil.convertToHtmlContent(description);
@@ -68,6 +68,10 @@ public class ProjectStructureProblemDescription {
return myMessage;
}
public boolean canShowPlace() {
return myCanShowPlace;
}
@Nullable
public String getDescription() {
return myDescription;