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
IApplications. - The second level is supposed to contain
IApplicationArtifacts (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) booleanhasChildren(Object element) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 beenullshowArtifacts- iftruethen artifact will be shown in the tree viewer
-
-
Method Details
-
getElements
- Specified by:
getElementsin interfaceIStructuredContentProvider- Specified by:
getElementsin interfaceITreeContentProvider
-
getChildren
- Specified by:
getChildrenin interfaceITreeContentProvider
-
getParent
- Specified by:
getParentin interfaceITreeContentProvider
-
hasChildren
- Specified by:
hasChildrenin interfaceITreeContentProvider
-