Class FileStoreStructureProvider
java.lang.Object
org.eclipse.ui.wizards.datatransfer.FileStoreStructureProvider
- All Implemented Interfaces:
IImportStructureProvider
FileStoreStructureProvider is the structure provider for
IFileStore
based file structures.- Since:
- 3.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FileStoreStructureProvider
Holds a singleton instance of this class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Object element) Returns a collection with the children of the specified structured element.getContents
(Object element) Returns the contents of the specified structured element, ornull
if there is a problem determining the element's contents.getFullPath
(Object element) Returns the full path of the specified structured element.Returns the display label of the specified structured element.boolean
Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).
-
Field Details
-
INSTANCE
Holds a singleton instance of this class.
-
-
Constructor Details
-
FileStoreStructureProvider
public FileStoreStructureProvider()
-
-
Method Details
-
getChildren
Description copied from interface:IImportStructureProvider
Returns a collection with the children of the specified structured element.- Specified by:
getChildren
in interfaceIImportStructureProvider
- Parameters:
element
- the element for which to compute the children- Returns:
- the list of child elements
-
getContents
Description copied from interface:IImportStructureProvider
Returns the contents of the specified structured element, ornull
if there is a problem determining the element's contents.Note:: The client is responsible for closing the stream when finished.
- Specified by:
getContents
in interfaceIImportStructureProvider
- Parameters:
element
- a structured element- Returns:
- the contents of the structured element, or
null
-
getFullPath
Description copied from interface:IImportStructureProvider
Returns the full path of the specified structured element.- Specified by:
getFullPath
in interfaceIImportStructureProvider
- Parameters:
element
- a structured element- Returns:
- the display label of the structured element
-
getLabel
Description copied from interface:IImportStructureProvider
Returns the display label of the specified structured element.- Specified by:
getLabel
in interfaceIImportStructureProvider
- Parameters:
element
- a structured element- Returns:
- the display label of the structured element
-
isFolder
Description copied from interface:IImportStructureProvider
Returns a boolean indicating whether the passed structured element represents a container element (as opposed to a leaf element).- Specified by:
isFolder
in interfaceIImportStructureProvider
- Parameters:
element
- java.lang.Object- Returns:
- boolean
-