Package org.eclipse.xtext.resource
Class XtextPlatformResourceURIHandler
- java.lang.Object
-
- org.eclipse.emf.ecore.xmi.impl.URIHandlerImpl
-
- org.eclipse.xtext.resource.XtextPlatformResourceURIHandler
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.xmi.XMLResource.URIHandler
public class XtextPlatformResourceURIHandler extends org.eclipse.emf.ecore.xmi.impl.URIHandlerImpl
This URI handler implements a heuristic approach to work around a mismatch with platform URIs in the dev workspace and the deployed variant. Also deals with illegally resolved classpath URIs.- Since:
- 2.4
- Noextend:
- This class is not intended to be subclassed by clients.
- Noinstantiate:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description XtextPlatformResourceURIHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]
getRelevantClasspathSegments(org.eclipse.emf.common.util.URI uri)
protected java.lang.String[]
getRelevantPlatformSegments(org.eclipse.emf.common.util.URI uri)
org.eclipse.emf.ecore.resource.ResourceSet
getResourceSet()
protected boolean
isXtextSourceFolderName(java.lang.String segment)
org.eclipse.emf.common.util.URI
resolve(org.eclipse.emf.common.util.URI uri)
void
setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
-
-
-
Method Detail
-
setResourceSet
public void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
-
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
-
resolve
public org.eclipse.emf.common.util.URI resolve(org.eclipse.emf.common.util.URI uri)
- Specified by:
resolve
in interfaceorg.eclipse.emf.ecore.xmi.XMLResource.URIHandler
- Overrides:
resolve
in classorg.eclipse.emf.ecore.xmi.impl.URIHandlerImpl
-
getRelevantClasspathSegments
protected java.lang.String[] getRelevantClasspathSegments(org.eclipse.emf.common.util.URI uri)
-
getRelevantPlatformSegments
protected java.lang.String[] getRelevantPlatformSegments(org.eclipse.emf.common.util.URI uri)
-
isXtextSourceFolderName
protected boolean isXtextSourceFolderName(java.lang.String segment)
-
-