final JMenuItem manualInstallMenuItem = new JMenuItem("Manually install JAR file", imageManager
.getImageIcon("images/filetypes/archive.png"));
manualInstallMenuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
final DCFileChooser fileChooser = new DCFileChooser(_userPreferences.getConfiguredFileDirectory());
fileChooser.setMultiSelectionEnabled(true);
fileChooser.setFileFilter(new ExtensionFilter("DataCleaner extension JAR file (.jar)", ".jar"));
int result = fileChooser.showOpenDialog(ExtensionPackagesPanel.this);
if (result == DCFileChooser.APPROVE_OPTION) {
final File[] files = fileChooser.getSelectedFiles();
final String suggestedPackageName = ExtensionPackage.autoDetectPackageName(files[0]);
final String packageName = JOptionPane.showInputDialog(
"Please provide the package name of the extension", suggestedPackageName);