public void valueChanged(ListSelectionEvent e) {
if (!refreshingTable) {
EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
if (edc.isOpen()) {
if (table.getSelectedRow() != -1) {
edc.editEdges(getEdgesFromSelectedRows());
} else {
edc.disableEdit();
}
}
}