PathUtil currentAlwaysRunPath = new PathUtil(currentTarget.getAlwaysRunFilename());
PathUtil relativePath = currentAlwaysRunPath.makeRelativeToParent(oldPath);
if (relativePath != null) {
// Either this node, or some ancestor node got renamed.
PathUtil newFilePath = PathUtil.concatenate(newPath, relativePath);
RunTargetImpl impl = (RunTargetImpl) currentTarget;
impl.setAlwaysRunFilename(newFilePath.getPathString());
targetPopup.setRunTarget(impl);
}
}