Class TmfAggregateAnalysisElement
java.lang.Object
org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectModelElement
org.eclipse.tracecompass.tmf.ui.project.model.TmfAnalysisElement
org.eclipse.tracecompass.tmf.ui.project.model.TmfAggregateAnalysisElement
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,ITmfProjectModelElement,ITmfStyledProjectModelElement,org.eclipse.ui.views.properties.IPropertySource,org.eclipse.ui.views.properties.IPropertySource2
Class for project elements of type compound analysis modules.
This element aggregates analyses with the same type that come from various
traces contained in an experiment. This allows to show trace analyses and
their views under the experiment's view element.
- Since:
- 3.0
- Author:
- Bernd Hufmann
-
Method Summary
Modifier and TypeMethodDescriptionvoidMake sure the trace this analysis is associated to is the currently selected onevoidaddAnalyses(@NonNull TmfAnalysisElement element) Add an analysis element that is combined in the compound element.booleanChecks whether the analysis can be executed or not.voiddispose()Recursively dispose of the element and its children.Returns a list of children model elements.Gets the help message for this analysisReturns the parent of this model element.org.eclipse.ui.views.properties.IPropertyDescriptor[]booleanReturns whether this model element has children or not.booleanisEmpty()Checks if aggregated list is empty or notvoidremoveAnalyses(@NonNull TmfAnalysisElement element) Remove an analysis element that is combined in the compound element.Methods inherited from class org.eclipse.tracecompass.tmf.ui.project.model.TmfAnalysisElement
getAnalysisId, getAvailableOutputs, getBundle, getEditableValue, getIcon, getIconFile, getStyler, isPropertyResettable, isPropertySet, resetPropertyValue, scheduleAnalysis, setPropertyValueMethods inherited from class org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectModelElement
equals, getAdapter, getLocation, getName, getPath, getProject, getResource, getTraceSupplementaryFolder, hashCode, prepareTraceSupplementaryFolder, prepareTraceSupplementaryFolder, refresh, refreshViewer, toStringMethods inherited from interface org.eclipse.tracecompass.tmf.ui.project.model.ITmfProjectModelElement
getChild, getLabelText
-
Method Details
-
dispose
public void dispose()Description copied from interface:ITmfProjectModelElementRecursively dispose of the element and its children. -
canExecute
public boolean canExecute()Description copied from class:TmfAnalysisElementChecks whether the analysis can be executed or not.- Overrides:
canExecutein classTmfAnalysisElement- Returns:
trueif analysis can be executed elsefalse
-
addAnalyses
Add an analysis element that is combined in the compound element.- Parameters:
element- analysis element to add
-
removeAnalyses
Remove an analysis element that is combined in the compound element.- Parameters:
element- analysis element to remove
-
isEmpty
public boolean isEmpty()Checks if aggregated list is empty or not- Returns:
trueif empty elsefalse
-
getHelpMessage
Gets the help message for this analysis- Overrides:
getHelpMessagein classTmfAnalysisElement- Returns:
- The help message
-
activateParentTrace
public void activateParentTrace()Make sure the trace this analysis is associated to is the currently selected one- Overrides:
activateParentTracein classTmfAnalysisElement
-
getPropertyDescriptors
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()- Specified by:
getPropertyDescriptorsin interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
getPropertyDescriptorsin classTmfAnalysisElement
-
getPropertyValue
- Specified by:
getPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
getPropertyValuein classTmfAnalysisElement
-
hasChildren
public boolean hasChildren()Description copied from interface:ITmfProjectModelElementReturns whether this model element has children or not.- Returns:
trueif this model element has children elsefalse
-
getChildren
Description copied from interface:ITmfProjectModelElementReturns a list of children model elements.- Specified by:
getChildrenin interfaceITmfProjectModelElement- Overrides:
getChildrenin classTmfProjectModelElement- Returns:
- a list of children model elements.
-
getParent
Description copied from interface:ITmfProjectModelElementReturns the parent of this model element.- Specified by:
getParentin interfaceITmfProjectModelElement- Overrides:
getParentin classTmfAnalysisElement- Returns:
- the parent of this model element.
-