|
|
|
@ -8,6 +8,7 @@ import com.fr.exit.DesignerExiter;
|
|
|
|
|
import com.fr.process.engine.core.CarryMessageEvent; |
|
|
|
|
import com.fr.process.engine.core.FineProcessContext; |
|
|
|
|
import com.fr.process.engine.core.FineProcessEngineEvent; |
|
|
|
|
import com.fr.start.common.DesignerStartupContext; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author hades |
|
|
|
@ -31,6 +32,10 @@ public class DesignerSubListener {
|
|
|
|
|
FineProcessContext.getParentPipe().listen(FineProcessEngineEvent.READY, new Listener<Null>() { |
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null param) { |
|
|
|
|
// 如果是在起始页的等待过程中
|
|
|
|
|
if (DesignerStartupContext.getInstance().isOnWaiting()) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (DesignerContext.getDesignerFrame() == null || !DesignerContext.getDesignerFrame().isShowing()) { |
|
|
|
|
|
|
|
|
|
DesignerExiter.getInstance().exitUnexpectedly(() -> { |
|
|
|
|