Browse Source

REPORT-43833 【10.0.14】远程设计数据连接/服务器数据集增加锁定

将通知组件的操作放到EDT中
feature/big-screen
Yvan 4 years ago
parent
commit
7cc2ffb8fd
  1. 8
      designer-base/src/main/java/com/fr/design/editlock/EditLockChangeChecker.java

8
designer-base/src/main/java/com/fr/design/editlock/EditLockChangeChecker.java

@ -1,6 +1,7 @@
package com.fr.design.editlock;
import com.fr.concurrent.NamedThreadFactory;
import com.fr.design.ui.util.UIUtil;
import com.fr.log.FineLoggerFactory;
import com.fr.workspace.WorkContext;
import com.fr.workspace.server.lock.editlock.EditLockOperator;
@ -60,8 +61,13 @@ public abstract class EditLockChangeChecker {
}
private void fireChange() {
for (EditLockChangeListener listener : this.listeners) {
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
for (EditLockChangeListener listener : EditLockChangeChecker.this.listeners) {
listener.updateLockedState(new EditLockChangeEvent(isLocked));
}
}
});
}
}

Loading…
Cancel
Save