neil
6 years ago
2 changed files with 34 additions and 1 deletions
@ -0,0 +1,34 @@
|
||||
package com.fr.design.constants; |
||||
|
||||
import com.fr.event.Event; |
||||
import com.fr.event.EventDispatcher; |
||||
import com.fr.event.Null; |
||||
|
||||
/** |
||||
* 设计器启动事件类型 |
||||
* |
||||
* @author vito |
||||
* @date 2019-06-18 |
||||
*/ |
||||
public enum DesignerLaunchStatus implements Event<Null> { |
||||
/** |
||||
* 初始化环境完成 |
||||
*/ |
||||
WORKSPACE_INIT_COMPLETE, |
||||
|
||||
/** |
||||
* 设计器模块启动完成 |
||||
*/ |
||||
DESIGNER_INIT_COMPLETE; |
||||
|
||||
private static DesignerLaunchStatus status; |
||||
|
||||
public static DesignerLaunchStatus getStatus() { |
||||
return status; |
||||
} |
||||
|
||||
public static void setStatus(DesignerLaunchStatus state) { |
||||
status = state; |
||||
EventDispatcher.fire(DesignerLaunchStatus.getStatus()); |
||||
} |
||||
} |
Loading…
Reference in new issue