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 ObjectgetAdapter(Class adapter)StringgetCharset()InputStreamgetContents()org.eclipse.swt.graphics.ImagegetImage()StringgetName()StringgetType()
-
-
-
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:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-
getCharset
public String getCharset() throws org.eclipse.core.runtime.CoreException
- Specified by:
getCharsetin interfaceorg.eclipse.compare.IEncodedStreamContentAccessor- Throws:
org.eclipse.core.runtime.CoreException
-
getContents
public InputStream getContents() throws org.eclipse.core.runtime.CoreException
- Specified by:
getContentsin interfaceorg.eclipse.compare.IStreamContentAccessor- Throws:
org.eclipse.core.runtime.CoreException
-
getImage
public org.eclipse.swt.graphics.Image getImage()
- Specified by:
getImagein interfaceorg.eclipse.compare.ITypedElement
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.compare.ITypedElement
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.eclipse.compare.ITypedElement
-
-