@SuppressWarnings("unchecked")
protected void handleEdit() {
List l = fMapList.getSelectedElements();
if (l.size() == 1) {
Mapping oldElement = (Mapping) l.get(0);
PathMapperEntryDialog dialog = new PathMapperEntryDialog(
getShell(), oldElement);
if (dialog.open() == Window.OK) {
Mapping newElement = dialog.getResult();
fMapList.replaceElement(oldElement, newElement);
}
}
}