use of jmri.jmrit.display.CoordinateEdit in project JMRI by JMRI.
the class ControlPanelEditor method pasteItems.
void pasteItems() {
if (_selectionGroup != null) {
for (Positionable pos : _selectionGroup) {
if (pos instanceof PositionableIcon) {
jmri.NamedBean bean = pos.getNamedBean();
if (bean != null) {
((PositionableIcon) pos).displayState(bean.getState());
}
}
putItem(pos);
log.debug("Add {}", pos.getNameString());
}
if (_selectionGroup.get(0) instanceof LocoIcon) {
LocoIcon p = (LocoIcon) _selectionGroup.get(0);
CoordinateEdit f = new CoordinateEdit();
f.init("Train Name", p, false);
f.initText();
f.setVisible(true);
f.setLocationRelativeTo(p);
}
}
_pastePending = false;
}
Aggregations