I searched a lot, checked many times the neccesary steps, but it still don\'t work.
My environment is :
Latest eclipse for PHP developer package
Right-Click on your project -> Configure -> Add PHP Support...
Works for me on Eclipse 3.5 / PDT 2.1
If issue is still exists, follow the following steps:
Remove project from eclipse.
Goto your project folder and remove .Settings folder and .project file.
Again import php project with different name.
it's work for me.
Nothing helped, but this:
In Eclipse:
Go to Window -> Preferences -> General -> Editors -> File Associations
Click Add
Type *.php
Under Associated Editors choose PHP Editor and click Default on the right.
Close and open your php file.
Right-Click on your project -> Configure -> Convert to PHP Project...
Works for me on Eclipse 4.6 / PDT 5.2
There are 3 .dll files: model.h2.db, model.lock.db and model.trace.db under workspace/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2
Remove these files and restart Eclipse.
For me, nothing worked, except:
I got this tip from #4 in: http://www.nwiresoftware.com/blogs/nwire/2010/09/five-tips-speeding-eclipse-pdt-and-nwire