Class URIStorage
java.lang.Object
org.eclipse.emf.compare.ide.internal.utils.URIStorage
- All Implemented Interfaces:
org.eclipse.core.resources.IStorage
,org.eclipse.core.runtime.IAdaptable
This implementation of an
IStorage
will allow us to keep track of the URIHandler
that's
been used to load a given URI from this uri converter.-
Constructor Summary
ConstructorDescriptionURIStorage
(URI uri, URIHandler handler, URIConverter converter) Creates an URIStorage for the given URI an its associated handler. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAdapter
(Class adapter) org.eclipse.core.runtime.IPath
getName()
getURI()
Returns the unmodified URI for this storage (will need normalization).int
hashCode()
boolean
-
Constructor Details
-
URIStorage
Creates an URIStorage for the given URI an its associated handler.- Parameters:
uri
- The target uri of this storage.handler
- The URI handler that can be used to retrieve this URI's contents.converter
- The URI converter which created this storage.
-
-
Method Details
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- See Also:
-
IAdaptable.getAdapter(java.lang.Class)
-
getContents
- Specified by:
getContents
in interfaceorg.eclipse.core.resources.IStorage
- Throws:
org.eclipse.core.runtime.CoreException
- See Also:
-
IStorage.getContents()
-
getFullPath
public org.eclipse.core.runtime.IPath getFullPath()- Specified by:
getFullPath
in interfaceorg.eclipse.core.resources.IStorage
- See Also:
-
IStorage.getFullPath()
-
getName
- Specified by:
getName
in interfaceorg.eclipse.core.resources.IStorage
- See Also:
-
IStorage.getName()
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfaceorg.eclipse.core.resources.IStorage
- See Also:
-
IStorage.isReadOnly()
-
hashCode
public int hashCode() -
equals
-
getURI
Returns the unmodified URI for this storage (will need normalization).- Returns:
- The unmodified URI for this storage.
-