In my workspace there are several projects, that were created before the PDT was released. During the PDT development there was an option in the project contextmenu to convert the project into a PDT project - but as it seems, this option was removed in the final version.
So if you still want to convert a project, you have to do this manually:
- Open the navigator view (Window > Show View > Other > General > Navigator)
- Open the .project file
- Switch to the source code view of the file (at the bottom)
- Now you have to add the
following information to you XML file. Copy and Paste the parts that
are missing in yours. Usually you have already some information in your
XML-File like a project-name. Do not simply override your .project-file with this code.
<projectDescription>
<buildSpec>
<buildCommand>
<name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>
Thats it.
Here an example of a complete (minimal) .project-file for PDT:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ProjectName</name>
<comment></comment>
<buildSpec>
<buildCommand>
<name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>
If you try to convert a PHPEclipse project into a PDT project, have a look at the following site:
Migration von PHPeclipse zu PDT (german)