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.IAdaptable
public String getCharset() throws org.eclipse.core.runtime.CoreException
getCharset
in interface org.eclipse.compare.IEncodedStreamContentAccessor
org.eclipse.core.runtime.CoreException
public InputStream getContents() throws org.eclipse.core.runtime.CoreException
getContents
in interface org.eclipse.compare.IStreamContentAccessor
org.eclipse.core.runtime.CoreException
public org.eclipse.swt.graphics.Image getImage()
getImage
in interface org.eclipse.compare.ITypedElement
public String getName()
getName
in interface org.eclipse.compare.ITypedElement
public String getType()
getType
in interface org.eclipse.compare.ITypedElement
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.