Browse Source

REPORT-28701 支持批量组件安装

research/11.0
hades 5 years ago
parent
commit
bd4c7a6f6b
  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