Class ApplicationsTreeContentProvider
java.lang.Object
com.e1c.g5.dt.applications.ui.view.ApplicationsTreeContentProvider
- All Implemented Interfaces:
IContentProvider
,IStructuredContentProvider
,ITreeContentProvider
Provides tree content for Applications view.
- Top level is supposed to be a list of
IApplication
s. - The second level is supposed to contain
IApplicationArtifact
s (which are taken fromapplication manager
(which could supply extra artifacts through IApplicationArtifactProvider mechanism). - Third and further levels could contain extra artifacts hierarchy (through application manager's artifacts provider mechanism).
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationsTreeContentProvider
(IApplicationManager applicationManager) Constructs content providerApplicationsTreeContentProvider
(IApplicationManager applicationManager, boolean showArtifacts) Constructs content provider -
Method Summary
Modifier and TypeMethodDescriptionObject[]
getChildren
(Object parentElement) Object[]
getElements
(Object inputElement) boolean
hasChildren
(Object element) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
-
Constructor Details
-
ApplicationsTreeContentProvider
Constructs content provider- Parameters:
applicationManager
- the application manager, cannot beenull
-
ApplicationsTreeContentProvider
public ApplicationsTreeContentProvider(IApplicationManager applicationManager, boolean showArtifacts) Constructs content provider- Parameters:
applicationManager
- the application manager, cannot beenull
showArtifacts
- iftrue
then artifact will be shown in the tree viewer
-
-
Method Details
-
getElements
- Specified by:
getElements
in interfaceIStructuredContentProvider
- Specified by:
getElements
in interfaceITreeContentProvider
-
getChildren
- Specified by:
getChildren
in interfaceITreeContentProvider
-
getParent
- Specified by:
getParent
in interfaceITreeContentProvider
-
hasChildren
- Specified by:
hasChildren
in interfaceITreeContentProvider
-