Browse Source

Pull request #5578: REPORT-58250 文件选择器弹窗-组件安装弹窗的文件格式,需要有zip格式

Merge in DESIGN/design from ~HENRY.WANG/design:final/10.0 to final/10.0

* commit '51f32cd93bd3a44730ef829470985d478a314819':
  REPORT-58250 文件选择器弹窗-组件安装弹窗的文件格式,需要有zip格式
final/10.0
Henry.Wang 3 years ago
parent
commit
fd109d4a15
  1. 3
      designer-form/src/main/java/com/fr/design/mainframe/share/action/InstallComponentAction.java

3
designer-form/src/main/java/com/fr/design/mainframe/share/action/InstallComponentAction.java

@ -52,7 +52,8 @@ public class InstallComponentAction extends UpdateAction {
title(Toolkit.i18nText("Fine-Design_Basic_Select")). title(Toolkit.i18nText("Fine-Design_Basic_Select")).
filters(new FileChooser.ExtensionFilter[]{ filters(new FileChooser.ExtensionFilter[]{
new FileChooser.ExtensionFilter("reu", "*.reu"), new FileChooser.ExtensionFilter("reu", "*.reu"),
new FileChooser.ExtensionFilter("reus", "*.reus")}). new FileChooser.ExtensionFilter("reus", "*.reus"),
new FileChooser.ExtensionFilter("zip", "*.zip")}).
build(); build();
int returnValue = fileChooserProvider.showDialog(null); int returnValue = fileChooserProvider.showDialog(null);
installComponent(returnValue, fileChooserProvider.getSelectedFiles()); installComponent(returnValue, fileChooserProvider.getSelectedFiles());

Loading…
Cancel
Save