Set<String> keySet = Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().keySet();
if (keySet.contains(file.getFileExtension())) {
URI resourceURI = URI.createPlatformResourceURI(resource.getFullPath().toString(), true);
Resource.Factory emfResourceFactory = Resource.Factory.Registry.INSTANCE.getFactory(resourceURI);
if (emfResourceFactory != null) {
<BUG>if (isDeleted)
indexBuilder.resourceChanged(resourceURI);
else
indexBuilder.resourceDeleted(resourceURI);</BUG>
return true;

Set<String> keySet = Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().keySet();
if (keySet.contains(file.getFileExtension())) {
URI resourceURI = URI.createPlatformResourceURI(resource.getFullPath().toString(), true);
Resource.Factory emfResourceFactory = Resource.Factory.Registry.INSTANCE.getFactory(resourceURI);
if (emfResourceFactory != null) {
if (isDeleted)
indexBuilder.resourceDeleted(resourceURI);
else
indexBuilder.resourceChanged(resourceURI);
return true;
