// configure nature
IProjectDescription desc = project.getDescription();
desc.setNatureIds(new String[] { PHPNature.ID });
project.setDescription(desc, null);
WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() {
public IBuffer createBuffer(ISourceModule workingCopy) {
ISourceModule original = workingCopy.getPrimary();
IResource resource = original.getResource();
if (resource != null) {
if (resource instanceof IFile) {