From b53cbb1fed9b463987e05ea83a18bb53c97e070f Mon Sep 17 00:00:00 2001 From: kuangshuai Date: Mon, 24 May 2021 18:16:17 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-52629=20=E7=BB=84=E4=BB=B6=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=8E=92=E5=BA=8F=E9=80=BB=E8=BE=91=E7=9A=84=E4=BF=9D?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/mainframe/share/ui/local/GroupPane.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/designer-form/src/main/java/com/fr/design/mainframe/share/ui/local/GroupPane.java b/designer-form/src/main/java/com/fr/design/mainframe/share/ui/local/GroupPane.java index 94d24a3d5b..bfa6343e06 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/share/ui/local/GroupPane.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/share/ui/local/GroupPane.java @@ -9,6 +9,7 @@ import com.fr.design.i18n.Toolkit; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.share.group.ui.GroupFileDialog; +import com.fr.design.mainframe.share.sort.SortType; import com.fr.design.mainframe.share.sort.WidgetSortType; import com.fr.design.mainframe.share.ui.base.PopupMenuItem; import com.fr.design.mainframe.share.ui.widgetfilter.LocalWidgetFilter; @@ -49,6 +50,7 @@ class GroupPane extends JPanel { //是否展开 private boolean expendStatus; private SharableWidgetProvider[] elCaseBindInfoList; + private SortType sortType = WidgetSortType.INSTALL_TIME; private GroupPane(Group group) { this(group, DEFAULT_HEIGHT, group.isDefaultExpend()); @@ -133,11 +135,12 @@ class GroupPane extends JPanel { if (widgetProviders == null) { widgetProviders = new SharableWidgetProvider[0]; } - WidgetSortType.INSTALL_TIME.sort(widgetProviders); + sortType.sort(widgetProviders); return widgetProviders; } public void sortWidget(WidgetSortType sortType) { + this.sortType = sortType; sortType.sort(elCaseBindInfoList); reCreateShowPane(elCaseBindInfoList); }