}
}
public void addMotionBtn_clicked() {
try {
MotionType motionType = (MotionType) addMotionCmb.getSelectedItem();
if (motionType != null) {
Motion newMotion = motionType.getMotionClass().newInstance();
project.getMotions().add(newMotion);
boolean oldRefreshing = refreshing;
refreshing = true;
try {