Class StorageTypedElement
- java.lang.Object
-
- org.eclipse.emf.compare.ide.ui.internal.logical.StorageTypedElement
-
- All Implemented Interfaces:
org.eclipse.compare.IEncodedStreamContentAccessor
,org.eclipse.compare.IStreamContentAccessor
,org.eclipse.compare.ITypedElement
,org.eclipse.core.runtime.IAdaptable
public class StorageTypedElement extends Object implements org.eclipse.compare.ITypedElement, org.eclipse.compare.IEncodedStreamContentAccessor, org.eclipse.core.runtime.IAdaptable
Mostly copied from org.eclipse.team.internal.ui.StorageTypedElement.
-
-
Constructor Summary
Constructors Constructor Description StorageTypedElement(org.eclipse.core.resources.IStorage storage, String fullPath)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAdapter(Class adapter)
String
getCharset()
InputStream
getContents()
org.eclipse.swt.graphics.Image
getImage()
String
getName()
String
getType()
-
-
-
Constructor Detail
-
StorageTypedElement
public StorageTypedElement(org.eclipse.core.resources.IStorage storage, String fullPath)
Default constructor.- Parameters:
storage
- The storage for which we need a typed element.fullPath
- Full path to this storage, relative to the workspace root.
-
-
Method Detail
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getCharset
public String getCharset() throws org.eclipse.core.runtime.CoreException
- Specified by:
getCharset
in interfaceorg.eclipse.compare.IEncodedStreamContentAccessor
- Throws:
org.eclipse.core.runtime.CoreException
-
getContents
public InputStream getContents() throws org.eclipse.core.runtime.CoreException
- Specified by:
getContents
in interfaceorg.eclipse.compare.IStreamContentAccessor
- Throws:
org.eclipse.core.runtime.CoreException
-
getImage
public org.eclipse.swt.graphics.Image getImage()
- Specified by:
getImage
in interfaceorg.eclipse.compare.ITypedElement
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.compare.ITypedElement
-
getType
public String getType()
- Specified by:
getType
in interfaceorg.eclipse.compare.ITypedElement
-
-