Browse Source

Pull request #10991: REPORT-87060 Swing界面操作在Swing线程避免线程卡死

Merge in DESIGN/design from ~WEI/design:release/11.0 to release/11.0

* commit 'e76a6606f8af814fb3ced5a05e9cbc5cfa31164b':
  REPORT-87060 Swing界面操作在Swing线程避免线程卡死
release/11.0
wei-魏阳露 2 years ago
parent
commit
0edf3d4282
  1. 3
      designer-base/src/main/java/com/fr/design/data/DesignTableDataManager.java

3
designer-base/src/main/java/com/fr/design/data/DesignTableDataManager.java

@ -41,6 +41,7 @@ import com.fr.stable.StringUtils;
import com.fr.stable.xml.XMLPrintWriter;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.io.ByteArrayOutputStream;
@ -649,6 +650,7 @@ public abstract class DesignTableDataManager {
}
private static void showParaWindow(final Map<String, Object> parameterMap, ParameterProvider[] inParameters) {
SwingUtilities.invokeLater(() -> {
final ParameterInputPane pPane = new ParameterInputPane(inParameters);
pPane.showSmallWindow(new JFrame(), new DialogActionAdapter() {
@Override
@ -656,6 +658,7 @@ public abstract class DesignTableDataManager {
parameterMap.putAll(pPane.update());
}
}).setVisible(true);
});
}
public static void setThreadLocal(String value) {

Loading…
Cancel
Save