public class StorageTypedElement extends Object implements org.eclipse.compare.ITypedElement, org.eclipse.compare.IEncodedStreamContentAccessor, org.eclipse.core.runtime.IAdaptable
| Constructor and Description |
|---|
StorageTypedElement(org.eclipse.core.resources.IStorage storage,
String fullPath)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdapter(Class adapter) |
String |
getCharset() |
InputStream |
getContents() |
org.eclipse.swt.graphics.Image |
getImage() |
String |
getName() |
String |
getType() |
public StorageTypedElement(org.eclipse.core.resources.IStorage storage,
String fullPath)
storage - The storage for which we need a typed element.fullPath - Full path to this storage, relative to the workspace root.public Object getAdapter(Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablepublic String getCharset() throws org.eclipse.core.runtime.CoreException
getCharset in interface org.eclipse.compare.IEncodedStreamContentAccessororg.eclipse.core.runtime.CoreExceptionpublic InputStream getContents() throws org.eclipse.core.runtime.CoreException
getContents in interface org.eclipse.compare.IStreamContentAccessororg.eclipse.core.runtime.CoreExceptionpublic org.eclipse.swt.graphics.Image getImage()
getImage in interface org.eclipse.compare.ITypedElementpublic String getName()
getName in interface org.eclipse.compare.ITypedElementpublic String getType()
getType in interface org.eclipse.compare.ITypedElement
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.