Search in sources :

Example 1 with ImportedNamesAdapter

use of org.eclipse.xtext.linking.impl.ImportedNamesAdapter in project xtext-core by eclipse.

the class DefaultResourceDescription method getImportedNames.

@Override
public Iterable<QualifiedName> getImportedNames() {
    EcoreUtil2.resolveLazyCrossReferences(resource, CancelIndicator.NullImpl);
    ImportedNamesAdapter adapter = ImportedNamesAdapter.find(getResource());
    if (adapter != null) {
        ImmutableSet<QualifiedName> result = ImmutableSet.copyOf(adapter.getImportedNames());
        return result;
    }
    return Collections.emptySet();
}
Also used : QualifiedName(org.eclipse.xtext.naming.QualifiedName) ImportedNamesAdapter(org.eclipse.xtext.linking.impl.ImportedNamesAdapter)

Aggregations

ImportedNamesAdapter (org.eclipse.xtext.linking.impl.ImportedNamesAdapter)1 QualifiedName (org.eclipse.xtext.naming.QualifiedName)1