Browse Source

Merge pull request #8419 in DESIGN/design from final/10.0 to persist/10.0

* commit 'c25459436f9b55567369af39ddb3e71bab9133df':
  REPORT-69163 新安装的kr设计器 无法使用frm
persist/10.0 10.0.19.2022.04.15
superman 3 years ago
parent
commit
d0064adb72
  1. 7
      designer-form/src/main/java/com/fr/design/mainframe/FormWidgetDetailPane.java

7
designer-form/src/main/java/com/fr/design/mainframe/FormWidgetDetailPane.java

@ -34,6 +34,7 @@ import java.util.List;
* Time: 下午8:18
*/
public class FormWidgetDetailPane extends FormDockView{
private static final int LOCAL_TAB = 0;
private static final int ONLINE_TAB = 1;
private JPanel centerPane;
@ -106,11 +107,15 @@ public class FormWidgetDetailPane extends FormDockView{
cardLayout.show(centerPane, paneList.get(newSelectedIndex).getTitle());
}
};
headGroup.setSelectedIndex(ComponentReuseNotificationInfo.getInstance().isClickedWidgetLib() ? 0 : ONLINE_TAB);
headGroup.setSelectedIndex(isNeedSwitchToOnlineTab() ? ONLINE_TAB : LOCAL_TAB);
this.add(headGroup, BorderLayout.NORTH);
this.add(centerPane, BorderLayout.CENTER);
}
private boolean isNeedSwitchToOnlineTab() {
return !ComponentReuseNotificationInfo.getInstance().isClickedWidgetLib() && isShowOnlineWidgetRepoPane();
}
public void resetEmptyPane(){
this.isEmptyPane = false;
}

Loading…
Cancel
Save