public class FileStoreStructureProvider extends Object implements IImportStructureProvider
IFileStore
based file structures.Modifier and Type | Field and Description |
---|---|
static FileStoreStructureProvider |
INSTANCE
Holds a singleton instance of this class.
|
Constructor and Description |
---|
FileStoreStructureProvider() |
Modifier and Type | Method and Description |
---|---|
List |
getChildren(Object element)
Returns a collection with the children of the specified structured element.
|
InputStream |
getContents(Object element)
Returns the contents of the specified structured element, or
null if there is a problem determining the element's
contents. |
String |
getFullPath(Object element)
Returns the full path of the specified structured element.
|
String |
getLabel(Object element)
Returns the display label of the specified structured element.
|
boolean |
isFolder(Object element)
Returns a boolean indicating whether the passed structured element represents
a container element (as opposed to a leaf element).
|
public static final FileStoreStructureProvider INSTANCE
public List getChildren(Object element)
IImportStructureProvider
getChildren
in interface IImportStructureProvider
element
- the element for which to compute the childrenpublic InputStream getContents(Object element)
IImportStructureProvider
null
if there is a problem determining the element's
contents.
Note:: The client is responsible for closing the stream when finished.
getContents
in interface IImportStructureProvider
element
- a structured elementnull
public String getFullPath(Object element)
IImportStructureProvider
getFullPath
in interface IImportStructureProvider
element
- a structured elementpublic String getLabel(Object element)
IImportStructureProvider
getLabel
in interface IImportStructureProvider
element
- a structured elementpublic boolean isFolder(Object element)
IImportStructureProvider
isFolder
in interface IImportStructureProvider
element
- java.lang.Object
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.