IDEA-89720 Preview usages: "select usages to preview" should be shown at the center of panel

This commit is contained in:
Vassiliy
2013-11-07 16:01:58 +04:00
parent 7b82bf183c
commit 5b2a86b8ab
3 changed files with 3 additions and 3 deletions
@@ -84,7 +84,7 @@ public class UsageContextDataflowToPanel extends UsageContextPanelBase {
public void updateLayoutLater(@Nullable final List<UsageInfo> infos) {
if (infos == null) {
removeAll();
JComponent titleComp = new JLabel(UsageViewBundle.message("select.the.usage.to.preview"));
JComponent titleComp = new JLabel(UsageViewBundle.message("select.the.usage.to.preview"), SwingConstants.CENTER);
add(titleComp, BorderLayout.CENTER);
revalidate();
}
@@ -101,7 +101,7 @@ public class UsageContextCallHierarchyPanel extends UsageContextPanelBase {
removeAll();
if (element == null) {
JComponent titleComp = new JLabel(UsageViewBundle.message("select.the.usage.to.preview"));
JComponent titleComp = new JLabel(UsageViewBundle.message("select.the.usage.to.preview"), SwingConstants.CENTER);
add(titleComp, BorderLayout.CENTER);
revalidate();
}
@@ -189,7 +189,7 @@ public class UsagePreviewPanel extends UsageContextPanelBase {
if (infos == null) {
releaseEditor();
removeAll();
JComponent titleComp = new JLabel(UsageViewBundle.message("select.the.usage.to.preview"));
JComponent titleComp = new JLabel(UsageViewBundle.message("select.the.usage.to.preview"), SwingConstants.CENTER);
add(titleComp, BorderLayout.CENTER);
revalidate();
}