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