|
|
|
@ -18,6 +18,7 @@ import com.fr.design.mainframe.DesignerFrame;
|
|
|
|
|
import com.fr.design.mainframe.toolbar.ToolBarMenuDock; |
|
|
|
|
import com.fr.design.monitor.DesignerLifecycleMonitorContext; |
|
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
|
import com.fr.design.versioncheck.VersionCheckUtils; |
|
|
|
|
import com.fr.event.Event; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
|
import com.fr.event.Listener; |
|
|
|
@ -90,10 +91,19 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
|
|
|
|
|
EventDispatcher.fire(WorkspaceStatus.Prepared); |
|
|
|
|
EventDispatcher.asyncFire(LazyStartupEvent.INSTANCE); |
|
|
|
|
collectUserInformation(); |
|
|
|
|
checkVersion(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkVersion() { |
|
|
|
|
try { |
|
|
|
|
VersionCheckUtils.showVersionCheckDialog(DesignerEnvManager.getEnvManager().getCurEnvName()); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().warn("Check Service Failed"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void show() { |
|
|
|
|
UIUtil.invokeLaterIfNeeded(this::refreshTemplateTree); |
|
|
|
|
} |
|
|
|
|