IResourceChangeListener listener = new IResourceChangeListener() {
@Override
public void resourceChanged(IResourceChangeEvent event)
{
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
SymfonyIndexer indexer;
try {
indexer = SymfonyIndexer.getInstance();
for (IProject project : workspace.getRoot().getProjects()) {
indexer.deleteServices(project.getFullPath().toString());
}
} catch (Exception e) {
Logger.logException(e);
}
}