use of jmri.jmrix.ecos.utilities.EcosLocoToRoster in project JMRI by JMRI.
the class EcosLocoTableAction method addToRoster.
void addToRoster(int row, int col) {
if (getByEcosObject(ecosObjectIdList.get(row)).getRosterId() == null) {
EcosLocoToRoster addLoco = new EcosLocoToRoster(adaptermemo);
getByEcosObject(ecosObjectIdList.get(row)).allowAddToRoster();
addLoco.addToQueue(getByEcosObject(ecosObjectIdList.get(row)));
addLoco.processQueue();
m.fireTableRowsUpdated(row, row);
}
}
Aggregations