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.
-
Field Summary
Fields inherited from interface org.eclipse.compare.ITypedElement
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
-
Constructor Summary
ConstructorDescriptionStorageTypedElement
(org.eclipse.core.resources.IStorage storage, String fullPath) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAdapter
(Class adapter) org.eclipse.swt.graphics.Image
getImage()
getName()
getType()
-
Constructor Details
-
StorageTypedElement
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 Details
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getCharset
- Specified by:
getCharset
in interfaceorg.eclipse.compare.IEncodedStreamContentAccessor
- Throws:
org.eclipse.core.runtime.CoreException
-
getContents
- 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
- Specified by:
getName
in interfaceorg.eclipse.compare.ITypedElement
-
getType
- Specified by:
getType
in interfaceorg.eclipse.compare.ITypedElement
-