Browse Source

Pull request #1726: REPORT-33162 监听插件改动面板刷新线程安全

Merge in DESIGN/design from ~YAOH.WU/design:release/10.0 to release/10.0

* commit '7fd2900d3e6ea8ad3fcbeba7f87d7f0f06f400dc':
  REPORT-33162 监听插件改动面板刷新线程安全
feature/big-screen
yaoh.wu 5 years ago
parent
commit
d40e2c6178
  1. 6
      designer-realize/src/main/java/com/fr/design/mainframe/cell/settingpane/CellExpandExtraAttrPane.java

6
designer-realize/src/main/java/com/fr/design/mainframe/cell/settingpane/CellExpandExtraAttrPane.java

@ -5,6 +5,7 @@ import com.fr.design.beans.BasicBeanPane;
import com.fr.design.fun.CellExpandAttrPanelProvider; import com.fr.design.fun.CellExpandAttrPanelProvider;
import com.fr.design.layout.TableLayout; import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper; import com.fr.design.layout.TableLayoutHelper;
import com.fr.design.ui.util.UIUtil;
import com.fr.event.EventDispatcher; import com.fr.event.EventDispatcher;
import com.fr.plugin.context.PluginContext; import com.fr.plugin.context.PluginContext;
import com.fr.plugin.injectable.PluginModule; import com.fr.plugin.injectable.PluginModule;
@ -52,8 +53,13 @@ public class CellExpandExtraAttrPane extends JPanel {
PluginEventListener listener = new PluginEventListener() { PluginEventListener listener = new PluginEventListener() {
@Override @Override
public void on(PluginEvent event) { public void on(PluginEvent event) {
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
CellExpandExtraAttrPane.getInstance().refresh(); CellExpandExtraAttrPane.getInstance().refresh();
} }
});
}
}; };
EventDispatcher.listen(AfterRun, listener, filter); EventDispatcher.listen(AfterRun, listener, filter);
EventDispatcher.listen(AfterStop, listener, filter); EventDispatcher.listen(AfterStop, listener, filter);

Loading…
Cancel
Save