|
|
|
@ -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)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|