Class TmfAggregateAnalysisElement

All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ITmfProjectModelElement, ITmfStyledProjectModelElement, org.eclipse.ui.views.properties.IPropertySource, org.eclipse.ui.views.properties.IPropertySource2

public class TmfAggregateAnalysisElement extends TmfAnalysisElement
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 Details

    • dispose

      public void dispose()
      Description copied from interface: ITmfProjectModelElement
      Recursively dispose of the element and its children.
    • canExecute

      public boolean canExecute()
      Description copied from class: TmfAnalysisElement
      Checks whether the analysis can be executed or not.
      Overrides:
      canExecute in class TmfAnalysisElement
      Returns:
      true if analysis can be executed else false
    • addAnalyses

      public void addAnalyses(@NonNull TmfAnalysisElement element)
      Add an analysis element that is combined in the compound element.
      Parameters:
      element - analysis element to add
    • removeAnalyses

      public void removeAnalyses(@NonNull TmfAnalysisElement element)
      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:
      true if empty else false
    • getHelpMessage

      public String getHelpMessage()
      Gets the help message for this analysis
      Overrides:
      getHelpMessage in class TmfAnalysisElement
      Returns:
      The help message
    • activateParentTrace

      public void activateParentTrace()
      Make sure the trace this analysis is associated to is the currently selected one
      Overrides:
      activateParentTrace in class TmfAnalysisElement
    • getPropertyDescriptors

      public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
      Specified by:
      getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource
      Overrides:
      getPropertyDescriptors in class TmfAnalysisElement
    • getPropertyValue

      public Object getPropertyValue(Object id)
      Specified by:
      getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
      Overrides:
      getPropertyValue in class TmfAnalysisElement
    • hasChildren

      public boolean hasChildren()
      Description copied from interface: ITmfProjectModelElement
      Returns whether this model element has children or not.
      Returns:
      true if this model element has children else false
    • getChildren

      public List<ITmfProjectModelElement> getChildren()
      Description copied from interface: ITmfProjectModelElement
      Returns a list of children model elements.
      Specified by:
      getChildren in interface ITmfProjectModelElement
      Overrides:
      getChildren in class TmfProjectModelElement
      Returns:
      a list of children model elements.
    • getParent

      public TmfViewsElement getParent()
      Description copied from interface: ITmfProjectModelElement
      Returns the parent of this model element.
      Specified by:
      getParent in interface ITmfProjectModelElement
      Overrides:
      getParent in class TmfAnalysisElement
      Returns:
      the parent of this model element.