[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.pdt] Re: How to add file to project?
|
- From: Nick Boldt <codeslave@xxxxxxxxxx>
- Date: Wed, 02 Jul 2008 00:22:09 -0400
- Newsgroups: eclipse.tools.pdt
- Organization: EclipseCorner
- User-agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071113)
If you have an existing project (without PDT nature/builder in its
.project file) you can add that information manually.
http://wiki.eclipse.org/PDT/FAQ#How_do_I_convert_an_existing_project_to_use_PDT.3F
This works too if your project is not located in the workspace, since
you can File > Import > Existing Project and simply tell Eclipse to use
that other location for the project... once the project has a proper
.project file in it.
Or, if you've created a new PDT project, you can simply copy the files
into it.
You might also want to vote for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161760.
Nick
Bill wrote:
> 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.
>
--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb