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