use of org.eclipse.xtext.ui.editor.IDirtyStateManagerExtension in project xtext-eclipse by eclipse.
the class JdtTypesProposalProvider method getDirtyTypeNames.
/**
* @since 2.8
*/
protected Set<String> getDirtyTypeNames() {
Iterable<IEObjectDescription> dirtyTypes = dirtyStateManager.getExportedObjectsByType(TypesPackage.Literals.JVM_TYPE);
final Set<String> dirtyNames = new HashSet<String>();
for (IEObjectDescription description : dirtyTypes) {
dirtyNames.add(description.getQualifiedName().toString());
}
for (URI dirtyURI : ((IDirtyStateManagerExtension) dirtyStateManager).getDirtyResourceURIs()) {
IResourceDescriptions index = resourceDescriptionsProvider.createPersistedResourceDescriptions();
IResourceDescription indexedResourceDescription = index.getResourceDescription(dirtyURI);
if (indexedResourceDescription != null)
for (IEObjectDescription desc : indexedResourceDescription.getExportedObjectsByType(TypesPackage.Literals.JVM_TYPE)) {
dirtyNames.add(desc.getQualifiedName().toString());
}
}
return dirtyNames;
}
Aggregations