Browse Source

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

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

6
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,8 +123,13 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree
private void refreshComponentTree() {
componentTree.setAndScrollSelectionPath(componentTree.getSelectedTreePath());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
componentTree.refreshUI();
}
});
}
private JPanel getWidgetPane() {
shorts = createShortcuts();

Loading…
Cancel
Save