Getting trained by Eclipse PDT: Opening an existing folder of files as a project
Key words and phrases
Eclipse PDT new PHP project from directory import project from source use existing code for PDT projectTags
Description
So you have a directory structure of a project, say it's a giant site you're taking over, and you want to open it as a project in Eclipse PHP Development Tools (PDT) to be able to use the project-wide search and other cool tools.
I just spent an hour trying to do it through File » New PHP Project and then naming the existing spot in the file system for the folder with all the code. This did not work. It completed without error, but if it were even creating the project I have no idea where it was putting them.
Creating a project in the default location did work.
File » New PHP Project with "Use defaults" under project contents.
Then, as a second step:
File » Import and under "General" select "File System". Let it grab your folder full of files (and subdirectories etc) wherever it is on your computer, and import it into your project at the default location.
Classify this as a workaround rather than actually knowing how it should work. But hey, at least it works. Humor Eclipse PDT; it will usually be worth it.
