Moved Mode object instantiation to optimize.

This commit is contained in:
U-BASIS\dgrove 2018-03-14 11:22:12 -04:00
parent 9695ea496f
commit 6f85d9832e

View File

@ -54,10 +54,10 @@ public final class AutoIngestDashboardTopComponent extends TopComponent {
if (tc != null) {
topComponentInitialized = true;
WindowManager.getDefault().isTopComponentFloating(tc);
Mode mode = WindowManager.getDefault().findMode("dashboard"); // NON-NLS
try {
if (tc.isOpened() == false) {
Mode mode = WindowManager.getDefault().findMode("dashboard"); // NON-NLS
if (mode != null) {
mode.dockInto(tc);
}