}
}
private void handleAdd() {
MultiResourceSelectionDialogWithFlowOption dialog = new MultiResourceSelectionDialogWithFlowOption(
getSection().getShell(), editor.getFile().getProject().getParent(),
"Component Engine Selection", editor.getFile().getLocation(), editor);
dialog.setTitle("Component Engine Selection");
dialog.setMessage("Select one or more component engines from the workspace:");
if (Window.CANCEL == dialog.open()) {
return;
}
Object[] files = dialog.getResult();
if (files != null && files.length > 0) {
for (int i = 0; i < files.length; i++) {
FileAndShortName fsn = new FileAndShortName(files[i]);
produceKeyAddDelegate(fsn.shortName, fsn.fileName, dialog.getAutoAddToFlow(),
dialog.isImportByName);
}
}
}