@Override
public void selectionChanged(SelectionChangedEvent evt) {
OrderedSelection selection = (OrderedSelection) evt.getSelection();
SelectedTables tables = new SelectedTables();
if (!selection.isEmpty()) {
DatabaseObject table = (DatabaseObject) selection.head();
tables.setTableUsage(table, 1);
}
model.setUsageCount(tables);
}
}