private void handleEditButtonPressed() {
IStructuredSelection selection = (IStructuredSelection) configsViewer
.getSelection();
if (!selection.isEmpty()) {
IWebflowConfig file = (IWebflowConfig) selection.getFirstElement();
Set<IModelElement> configs = new HashSet<IModelElement>();
String name = file.getName();
List<String> names = new ArrayList<String>();
names.add(name);
if (this.configFilesToBeansConfigs.containsKey(file)) {
Set<IModelElement> oldConfigs = this.configFilesToBeansConfigs
.get(file);
configs.addAll(oldConfigs);
}
WebflowConfigDialog dialog = new WebflowConfigDialog(SpringUIUtils
.getStandardDisplay().getActiveShell(),
project.getProject(), configs, names, file.getResource());
if (dialog.open() == Dialog.OK) {
this.configFilesToBeansConfigs.put(file, configs);
this.configFilesToNames.put(file, names.get(0));
hasUserMadeChanges = true;
}