Browse Source

REPORT-111337 【设计器性能】设计器卡顿优化 目录树搜索功能优化

fix-lag
Destiny.Lin 11 months ago
parent
commit
78e4fd5b0b
  1. 11
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java

11
designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java

@ -29,6 +29,7 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.imenu.UIMenuHighLight;
import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.gui.itoolbar.UIToolbar;
import com.fr.design.gui.itree.filetree.TemplateFileTree;
import com.fr.design.i18n.Toolkit;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.layout.TableLayout;
@ -463,7 +464,7 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
// 交换层级
searchToolbarPane.switchPane(TemplateTreeSearchToolbarPane.SEARCH_PANE);
refreshRightToolBarByContentPaneType();
TemplateTreePane.getInstance().refreshDockingView();
// 这边没啥必要再刷新TemplateTreePane了,正常是改变Env需要重新加载目录树才刷新的,搜索直接搜原来的
TemplateTreeSearchManager.getInstance().switchToSearch(TemplateTreePane.getInstance().getTemplateFileTree());
}
}
@ -844,4 +845,12 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
}
public TemplateFileTree getTemplateTreePane() {
if (selectedOperation instanceof TemplateTreePane) {
return ((TemplateTreePane) selectedOperation).getTemplateFileTree();
}
return new TemplateFileTree();
}
}

Loading…
Cancel
Save