How can I change a project's location pointer in Eclipse?
Delete the project from eclipse.
ENSURE THAT THE CHECK BOX is UNSELECTED, during this delete
And then import the project by File
-> Import
-> Import existing project
and choose it from the new location.
Don't try to modify the eclipse files manually!
Much more simple:
Right click -> Refactor -> Move
.
You can go to [workspace]/eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/ProjectName and try to edit .location which is the pointer to the project, but this file is purposely stored in binary. You Should Edit the location in file and some binary data ] the binary data that should edit , is bold :
40 B1 8B 81 23 BC 00 14 1A 25 96 E7 A3 93 BE 1E 00 5D 55 52 49 2F 2F 66 69 6C 65 3A 2F 44 3A 2F 6D 61 64 64 61 68 2F 50 72 6F 6A 65 63 74 73 2F 46 6C 65 65 74 4D 61 6E 61 67 65 6D 65 6E 74 2F 54 79 70 65 73 2F 50 6F 72 74 61 62 6C 65 63 6F 64 65 2F 46 69 72 6D 77 61 72 65 2F 74 65 73 74 2F 43 50 50 2F 41 54 6D 65 61 67 38 4C 69 62
00 00 00 00 00 00 00 00 00 00 00 00 00 00 C0 58 FB F3 23 BC 00 14 1A 51 F3 8C 7B BB 77 C6
The Location of 0x11 of file, is the length of file name, that you should edit it. its value is the length of highlighted part
Also You Can Use ProjectLocationUpdater : https://marketplace.eclipse.org/content/projectlocationupdater/metrics