public void keyReleased(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_DELETE) {
DataLaboratoryHelper dlh = DataLaboratoryHelper.getDefault();
Edge[] selectedEdges = getEdgesFromSelectedRows();
if (selectedEdges.length > 0) {
EdgesManipulator del = dlh.getEdgesManipulatorByName("DeleteEdges");
if (del != null) {
del.setup(selectedEdges, null);
if (del.canExecute()) {
dlh.executeManipulator(del);
}
}
}
}