Browse Source

REPORT-14908 启动设计器后,非reportlets文件夹下的模板,无法双击打开

bugfix/10.0
Hades 6 years ago
parent
commit
e32a9067c3
  1. 8
      designer-form/src/main/java/com/fr/design/mainframe/FormHierarchyTreePane.java

8
designer-form/src/main/java/com/fr/design/mainframe/FormHierarchyTreePane.java

@ -23,6 +23,7 @@ import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
@ -122,7 +123,12 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree
private void refreshComponentTree() {
componentTree.setAndScrollSelectionPath(componentTree.getSelectedTreePath());
componentTree.refreshUI();
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
componentTree.refreshUI();
}
});
}
private JPanel getWidgetPane() {

Loading…
Cancel
Save