use of org.eclipse.xtext.resource.IResourceDescription in project ow by vtst.
the class LessImportStatementResolver method loadResourceDescription.
// **************************************************************************
// Containers
private IResourceDescription loadResourceDescription(Resource resource, URI uri) {
LoadOnDemandResourceDescriptions lodrd = loadOnDemandDescriptions.get();
lodrd.initialize(new IResourceDescriptions.NullImpl(), Collections.<URI>emptyList(), resource);
try {
IResourceDescription rd = lodrd.getResourceDescription(uri);
return rd;
} catch (IllegalStateException e) {
// resource.
return null;
}
}
Aggregations