mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-89720 Preview usages: "select usages to preview" should be shown at the center of panel
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user