Are you trying to rename a file in a tab, which is what that dialogue you posted does, or rename the entire sketch ?