[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] How to add file to project?

Hi,

This sounds like a very simple question, but I've searched the forum and the web and haven't been able to find an answer.

I just installed PDT (http://mirrors.xmission.com/eclipse/tools/pdt/downloads/drops/S20080601-RC2/all-in-one/pdt-all-in-one-S20080601_RC2-linux-gtk.tar.gz) and created a new project. I have an existing code base that I'd like to be able to view and edit in Eclipse. I cannot figure out how add these files to the project.

What I've tried.

1) File->Import->General->File System
This apparently moves existing files into the workspace. I don't want to make copies of files, I want to edit them how they currently exist in the file system.


2) Opening files directly in the editor.
This works, but doesn't add the files to the PHP Explorer window. I suppose I could have all the files open at once, but this seems suboptimal.


3) Changing the include paths in the project settings.
This gave me a nice tree view of my files, but didn't change the Constants, Functions or Classes in the PHP Project Outline. It was unclear whether "include paths" referred to project include paths for PDT or somehow references PHP's include paths.


Again, I'd like to add existing files, without moving these files, to the current PDT/Eclipse project.

Thanks.