public void linkMotionBtn_clicked() {
Motion currMotion = getSelectedMotion();
if (currMotion != null && flamePropertiesTreeService.isPlainPropertySelected(flamePropertiesTree)) {
FlamePropertyPath propertyPath = flamePropertiesTreeService.getSelectedPropertyPath(flamePropertiesTree);
currMotion.getMotionLinks().add(new MotionLink(propertyPath));
refreshMotionLinksTable();
int selectRow = currMotion.getMotionLinks().size() - 1;
motionLinksTable.getSelectionModel().setSelectionInterval(selectRow, selectRow);
enableControls();
}