Search in sources :

Example 1 with ClasspathUriResolutionException

use of org.eclipse.xtext.resource.ClasspathUriResolutionException in project ow by vtst.

the class LessURIConverter method normalize.

@Override
public URI normalize(URI uri) {
    if (ClasspathUriUtil.isClasspathUri(uri)) {
        URI result = this.resourceSet.getClasspathUriResolver().resolve(this.resourceSet.getClasspathURIContext(), uri);
        if (ClasspathUriUtil.isClasspathUri(result))
            throw new ClasspathUriResolutionException(result);
        result = super.normalize(result);
        return result;
    }
    return super.normalize(CommonPlugin.resolve(uri));
}
Also used : ClasspathUriResolutionException(org.eclipse.xtext.resource.ClasspathUriResolutionException) URI(org.eclipse.emf.common.util.URI)

Aggregations

URI (org.eclipse.emf.common.util.URI)1 ClasspathUriResolutionException (org.eclipse.xtext.resource.ClasspathUriResolutionException)1