bind(form, SWTBinder.BINDING_STRATEGY_AS_YOU_TYPE);
}
private void handleAddLibrary() {
Shell shell = getManagedForm().getForm().getShell();
FileDialog dialog = new FileDialog(shell, SWT.MULTI);
dialog.setText("Select libraries to add");
dialog.setFilterExtensions(new String[] {"*.jar"});
String selectedFile = dialog.open();
if (selectedFile != null) {
String[] fileNames = dialog.getFileNames();
File dir = new File(dialog.getFilterPath());
for (int i = 0; i < fileNames.length; i++) {
String filename = fileNames[i];
boolean overwrite = true;
if (_model.hasLibrary(filename)) {
overwrite = MessageDialog.openConfirm(shell, "Overwrite?", "Library '" + filename + "' already exists, overwrite?");