|
|
|
@ -64,14 +64,11 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
|
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null param) { |
|
|
|
|
EventDispatcher.stopListen(this); |
|
|
|
|
UIUtil.invokeLaterIfNeeded(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
UIUtil.invokeLaterIfNeeded(() -> { |
|
|
|
|
|
|
|
|
|
// 打开上次的文件
|
|
|
|
|
showDesignerFrame(false); |
|
|
|
|
DesignerLaunchStatus.setStatus(DesignerLaunchStatus.OPEN_LAST_FILE_COMPLETE); |
|
|
|
|
} |
|
|
|
|
// 打开上次的文件
|
|
|
|
|
showDesignerFrame(false); |
|
|
|
|
DesignerLaunchStatus.setStatus(DesignerLaunchStatus.OPEN_LAST_FILE_COMPLETE); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -90,12 +87,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void show() { |
|
|
|
|
UIUtil.invokeLaterIfNeeded(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
refreshTemplateTree(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
UIUtil.invokeLaterIfNeeded(() -> refreshTemplateTree()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshTemplateTree() { |
|
|
|
|