public void run(TaskMonitor taskMonitor)
throws Exception
{
synchronized (this) {
MainPanel mainPanel = null;
if (!this.mcodeUtil.isOpened()) {
mainPanel = new MainPanel(this.swingApplication, this.mcodeUtil);
mainPanel.addAction(this.analyzeAction);
this.registrar.registerService(mainPanel, CytoPanelComponent.class, new Properties());
this.analyzeAction.updateEnableState();
} else {
mainPanel = this.mcodeUtil.getMainPanel();