|
|
@ -46,6 +46,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void init() { |
|
|
|
private void init() { |
|
|
|
|
|
|
|
prepare(); |
|
|
|
// 初始化look and feel.这个在预加载之前执行是因为lookAndFeel里的东西,预加载时也要用到
|
|
|
|
// 初始化look and feel.这个在预加载之前执行是因为lookAndFeel里的东西,预加载时也要用到
|
|
|
|
DesignUtils.initLookAndFeel(); |
|
|
|
DesignUtils.initLookAndFeel(); |
|
|
|
// 初始化Log Handler
|
|
|
|
// 初始化Log Handler
|
|
|
@ -53,14 +54,10 @@ public abstract class BaseDesigner extends ToolBarMenuDock { |
|
|
|
createDesignerFrame(); |
|
|
|
createDesignerFrame(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void show() { |
|
|
|
/** |
|
|
|
UIUtil.invokeLaterIfNeeded(new Runnable() { |
|
|
|
* 准备一些订阅 |
|
|
|
@Override |
|
|
|
*/ |
|
|
|
public void run() { |
|
|
|
private void prepare() { |
|
|
|
refreshTemplateTree(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EventDispatcher.listen(DesignerLaunchStatus.DESIGNER_INIT_COMPLETE, new Listener<Null>() { |
|
|
|
EventDispatcher.listen(DesignerLaunchStatus.DESIGNER_INIT_COMPLETE, new Listener<Null>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void on(Event event, Null param) { |
|
|
|
public void on(Event event, Null param) { |
|
|
@ -83,6 +80,15 @@ public abstract class BaseDesigner extends ToolBarMenuDock { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void show() { |
|
|
|
|
|
|
|
UIUtil.invokeLaterIfNeeded(new Runnable() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void run() { |
|
|
|
|
|
|
|
refreshTemplateTree(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void refreshTemplateTree() { |
|
|
|
private void refreshTemplateTree() { |
|
|
|
//TODO: 2019-06-14 这里有啥作用?
|
|
|
|
//TODO: 2019-06-14 这里有啥作用?
|
|
|
|
DesignerContext.getDesignerFrame().refreshEnv(); |
|
|
|
DesignerContext.getDesignerFrame().refreshEnv(); |
|
|
|