Browse Source

Pull request #1658: REPORT-28701 支持批量组件安装

Merge in DESIGN/design from ~HADES/design:feature/10.0 to feature/10.0

* commit 'bd4c7a6f6bc24bfa8a7708862dd1b50269051d81':
  REPORT-28701 支持批量组件安装
research/11.0
Hades 5 years ago
parent
commit
93c2a6727f
  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

@ -325,14 +325,17 @@ public class FormWidgetDetailPane extends FormDockView{
public void actionPerformed(ActionEvent e) {
UINativeFileChooser fileChooser = new UINativeFileChooser();
fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
fileChooser.setMultiSelectionEnabled(true);
FileNameExtensionFilter extensionFilter = new FileNameExtensionFilter(".reu", "reu");
fileChooser.setFileFilter(extensionFilter);
fileChooser.setExtensionFilter("*.reu");
fileChooser.setDialogTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Select"));
int returnValue = fileChooser.showOpenDialog(new UILabel());
if (returnValue == JFileChooser.APPROVE_OPTION) {
final File chosenFile = fileChooser.getSelectedFile();
installFromDiskZipFile(chosenFile);
final File[] chosenFiles = fileChooser.getSelectedFiles();
for (File file : chosenFiles) {
installFromDiskZipFile(file);
}
}
}
}

Loading…
Cancel
Save