Search in sources :

Example 1 with EcosLocoToRoster

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);
    }
}
Also used : EcosLocoToRoster(jmri.jmrix.ecos.utilities.EcosLocoToRoster)

Aggregations

EcosLocoToRoster (jmri.jmrix.ecos.utilities.EcosLocoToRoster)1