Class FileStoreStructureProvider
- java.lang.Object
-
- org.eclipse.ui.wizards.datatransfer.FileStoreStructureProvider
-
- All Implemented Interfaces:
IImportStructureProvider
public class FileStoreStructureProvider extends java.lang.Object implements IImportStructureProvider
FileStoreStructureProvider is the structure provider forIFileStorebased file structures.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static FileStoreStructureProviderINSTANCEHolds a singleton instance of this class.
-
Constructor Summary
Constructors Constructor Description FileStoreStructureProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ListgetChildren(java.lang.Object element)Returns a collection with the children of the specified structured element.java.io.InputStreamgetContents(java.lang.Object element)Returns the contents of the specified structured element, ornullif there is a problem determining the element's contents.java.lang.StringgetFullPath(java.lang.Object element)Returns the full path of the specified structured element.java.lang.StringgetLabel(java.lang.Object element)Returns the display label of the specified structured element.booleanisFolder(java.lang.Object element)Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).
-
-
-
Field Detail
-
INSTANCE
public static final FileStoreStructureProvider INSTANCE
Holds a singleton instance of this class.
-
-
Method Detail
-
getChildren
public java.util.List getChildren(java.lang.Object element)
Description copied from interface:IImportStructureProviderReturns a collection with the children of the specified structured element.- Specified by:
getChildrenin interfaceIImportStructureProvider- Parameters:
element- the element for which to compute the children- Returns:
- the list of child elements
-
getContents
public java.io.InputStream getContents(java.lang.Object element)
Description copied from interface:IImportStructureProviderReturns the contents of the specified structured element, ornullif there is a problem determining the element's contents.Note:: The client is responsible for closing the stream when finished.
- Specified by:
getContentsin interfaceIImportStructureProvider- Parameters:
element- a structured element- Returns:
- the contents of the structured element, or
null
-
getFullPath
public java.lang.String getFullPath(java.lang.Object element)
Description copied from interface:IImportStructureProviderReturns the full path of the specified structured element.- Specified by:
getFullPathin interfaceIImportStructureProvider- Parameters:
element- a structured element- Returns:
- the display label of the structured element
-
getLabel
public java.lang.String getLabel(java.lang.Object element)
Description copied from interface:IImportStructureProviderReturns the display label of the specified structured element.- Specified by:
getLabelin interfaceIImportStructureProvider- Parameters:
element- a structured element- Returns:
- the display label of the structured element
-
isFolder
public boolean isFolder(java.lang.Object element)
Description copied from interface:IImportStructureProviderReturns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).- Specified by:
isFolderin interfaceIImportStructureProvider- Parameters:
element- java.lang.Object- Returns:
- boolean
-
-