@Override
public AbbreviationSettings getCellLabelAbbreviationSettings() {
if (!isSingleCellSelection()) {
return null;
} else {
ComponentTableModel tableModel = ComponentTableModel.class.cast(model);
AbstractComponent component = (AbstractComponent) model.getStoredValueAt(table.getSelectedRows()[0], table.getSelectedColumns()[0]);
String fullLabel = tableModel.getFullCellName(table.getSelectedRows()[0], table.getSelectedColumns()[0]);
LabelAbbreviations currentAbbrevs = tableModel.getCellLabelAbbreviations(tableModel.getKey(component));
Abbreviations availableAbbrevs = ServiceAccess.getService(AbbreviationService.class).getAbbreviations(fullLabel);
return new AbbreviationSettings(fullLabel, availableAbbrevs, currentAbbrevs);
}
}