|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|