doRecordCBx.setEnabled(!running);
motionTable.setEnabled(!running);
addMotionCmb.setEnabled(!running);
addMotionBtn.setEnabled(!running);
Motion selMotion = getSelectedMotion();
deleteMotionBtn.setEnabled(!running && selMotion != null);
renameMotionBtn.setEnabled(deleteMotionBtn.isEnabled());
boolean plainPropertySelected = flamePropertiesTreeService.isPlainPropertySelected(flamePropertiesTree);
{
boolean linkMotionEnabled = false;
if (!running && selMotion != null && selMotion.getParent() == null) {
if (plainPropertySelected) {
FlamePropertyPath selPath = flamePropertiesTreeService.getSelectedPropertyPath(flamePropertiesTree);
linkMotionEnabled = !selMotion.hasLink(selPath);
}
}
linkMotionBtn.setEnabled(linkMotionEnabled);
unlinkMotionBtn.setEnabled(selMotion != null && motionLinksTable.getSelectedRow() >= 0 && motionLinksTable.getSelectedRow() < selMotion.getMotionLinks().size());
}
createMotionsCmb.setEnabled(!running);
clearMotionsBtn.setEnabled(!running && project.getMotions().size() > 0);
loadProjectBtn.setEnabled(!running);