IRV: ensure selected, add empty text (IDEA-117972)

This commit is contained in:
Anna Kozlova
2013-12-16 20:08:25 +04:00
parent a257dc4802
commit 05d3b27d0f
3 changed files with 3 additions and 2 deletions
@@ -417,7 +417,7 @@ class Browser extends JPanel {
public void showEmpty() {
myCurrentEntity = null;
try {
myHTMLViewer.read(new StringReader("<html><body></body></html>"), null);
myHTMLViewer.read(new StringReader(InspectionsBundle.message("inspection.offline.view.empty.browser.text")), null);
}
catch (IOException e) {
//can't be
@@ -173,6 +173,7 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
});
createActionsToolbar();
TreeUtil.selectFirstNode(myTree);
}
private void initTreeListeners() {
@@ -226,7 +226,7 @@ inspection.export.error.writing.to=Error writing to {0}
inspection.export.results.error.title=Inspection Results Export
inspection.export.inspections.link.text=Inspections
inspection.export.open.source.link.text=Open source
inspection.offline.view.empty.browser.text=<HTML><BODY>Select tree node for detailed information</BODY></HTML>
inspection.offline.view.empty.browser.text=<HTML><BODY>Select inspection result on the left to see details</BODY></HTML>
inspection.offline.view.tool.display.name.title=Name
inspection.generating.html.progress.title=Generating HTML...
inspection.generating.xml.progress.title=Dumping XML...