This might be refined in future to a somewhat more lazy creation, but
for now it fixes the bug that a machine context has no machine at the
start, and it is not clear, when else it should be created.
final void updateDefinition()
{
machineDefinition = machineId.map(MachineRegistry::getMachine);
final void updateDefinition()
{
machineDefinition = machineId.map(MachineRegistry::getMachine);
+ machineDefinition.ifPresent(md -> setActiveMachine(md.createNew()));
}
private void preferenceListener(PropertyChangeEvent changeEvent)
}
private void preferenceListener(PropertyChangeEvent changeEvent)