TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification

org.eclipse.hyades.trace.views.internal
Class CoverageStatisticView

java.lang.Object
  extended byorg.eclipse.hyades.trace.views.internal.StatisticView
      extended byorg.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
          extended byorg.eclipse.hyades.trace.views.internal.MultiLevelStatisticMethodView
              extended byorg.eclipse.hyades.trace.views.internal.CoverageStatisticView
All Implemented Interfaces:
org.eclipse.swt.events.ControlListener, java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class CoverageStatisticView
extends MultiLevelStatisticMethodView


Nested Class Summary
 class CoverageStatisticView.CoverageStatisticContentProvider
           
 class CoverageStatisticView.CoverageStatisticFilter
           
 class CoverageStatisticView.CoverageStatisticLabelProvider
           
 class CoverageStatisticView.CoverageStatisticSorter
           
 
Nested classes inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
MultiLevelStatisticView.MultiLevelStatisticContentProvider, MultiLevelStatisticView.MultiLevelStatisticLabelProvider, MultiLevelStatisticView.MultiLevelStatisticSorter
 
Nested classes inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
StatisticView.StatisticFilter, StatisticView.StatisticSorter
 
Field Summary
protected  ColumnLabelAdapter _callsCol
           
protected  ColumnLabelAdapter _classNameCol
           
protected  ColumnLabelAdapter _methodNameCol
           
protected  ColumnLabelAdapter _methodsHitCol
           
protected  ColumnLabelAdapter _methodsMissedCol
           
protected  ColumnLabelAdapter _methodsPercentHitCol
           
protected  ColumnLabelAdapter _packageNameCol
           
static java.lang.String CALLS_NOT_COMPUTED
          Use this TRCOption key with value "true" to say that calls column is useless.
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticMethodView
METHOD_LEVEL
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
_contextInfo, CLASS_LEVEL, DEFAULT_LEVEL, PACKAGE_LEVEL, PREFERENCE_KEY_PREFIX
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
_activeInst, _activeSize, _chooseColumnAction, _chooseColumnsAction, _currentColumns, _dataPane, _deltaColumns, _deltaColumnsAction, _filterContainer, _firstTime, _initialized, _isShowPercent, _layout, _listOfColumExtension, _maxTime, _newSelection, _page, _refresh, _showPercent, _sortByColumnAction, _templateOfColumExtension, _toolkit, _totalCalls, _totalInst, _totalSize, _updateAction, _viewComp, _viewContainer, _viewer, _viewerFilter, _viewerSorter, fSeparator, tmpList
 
Constructor Summary
CoverageStatisticView(org.eclipse.swt.widgets.Composite parent, TraceViewerPage page)
           
 
Method Summary
 void createColumnsLabelProviders()
           
protected  void expandFirstElement()
          expand the fisrt element of the table which is "Summary"
protected  ColumnDisplayInfo getColumnDisplayInfo(ColumnLabelAdapter col, boolean isDeltaColumn)
           
 java.lang.String getColumnsPreferencesKey()
           
 org.eclipse.jface.viewers.IContentProvider getContentProvider()
           
protected  java.lang.String getContextHelpId()
           
 java.lang.String getDefaultColumnsTemplate()
           
protected  java.lang.String getDefaultColumnsTemplateClassLevel()
           
protected  java.lang.String getDefaultColumnsTemplateMethodLevel()
           
protected  java.lang.String getDefaultColumnsTemplatePackageLevel()
           
protected  StatisticView.StatisticFilter getFilterInstance()
           
protected  java.lang.Object getItemModelData(org.eclipse.swt.widgets.TreeItem item)
           
protected  org.eclipse.swt.widgets.TreeItem getItemsRoot(org.eclipse.swt.widgets.Tree tree)
           
 int getLevel()
           
 org.eclipse.jface.viewers.LabelProvider getTableLabelProvider()
           
protected  StatisticView.StatisticSorter getViewerSorterInstance()
           
protected  java.lang.String getViewTypeStr()
           
 boolean isEmptyUpdate()
           
 void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
          Called when the context menu is about to open.
 void setLevel(int i)
           
protected  void showPercentUpdate()
           
 void updateModelSelection()
          Update the "model selection" when an element is selected in the table
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticMethodView
searchInLevel
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
canOpenSourceOnThisObject, createControl, createTree, dispose, getColumnsTemplateExtensions, getCurrentFilter, getTree, getTreeViewer, handleSelectionEvent, handleViewSelectionChangedEvent, isEmpty, openSourceForSelection, redrawTable, resetChooseColumnsAction, resetColumns, searchInClassLevel, searchInMethodLevel, searchInObjectLevel, searchInPackageLevel, searchItem, update, updateButtons, updateStatusContext, widgetSelected
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
buildPreferenceStoreSring, compareElements, contextChanged, controlMoved, controlResized, createContent, createTreeViewer, firstTimeUpdate, getChooseColumnsAction, getColumnDataList, getColumnInfo, getContext, getControl, getDataPane, getDeltaColumnsAction, getElementColumnImage, getElementColumnText, getLayout, getShowPercentAction, getSortByColumnAction, getToolkit, getTraceViewerPage, getTreeViewer, getUpdateAction, getViewComponent, getViewerFilter, getViewerSorter, handleDeltaChanged, handlePercentChanged, isShowPercent, notifyViewSelectionChanged, parseExtensions, postUpdateEvents, refresh, selectionChanged, setLinesVisible, setNewSelection, setRedrawTable, showingDeltaColumns, showNewSelection, updateContext, updateTableGetColumnNumber, updateUI, widgetDefaultSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALLS_NOT_COMPUTED

public static final java.lang.String CALLS_NOT_COMPUTED
Use this TRCOption key with value "true" to say that calls column is useless. It won't appear if this flag is found in at least one of the TRCConfiguration of the runs belonging to the selected node in the profiling monitor.

See Also:
Constant Field Values

_packageNameCol

protected ColumnLabelAdapter _packageNameCol

_classNameCol

protected ColumnLabelAdapter _classNameCol

_methodNameCol

protected ColumnLabelAdapter _methodNameCol

_callsCol

protected ColumnLabelAdapter _callsCol

_methodsMissedCol

protected ColumnLabelAdapter _methodsMissedCol

_methodsHitCol

protected ColumnLabelAdapter _methodsHitCol

_methodsPercentHitCol

protected ColumnLabelAdapter _methodsPercentHitCol
Constructor Detail

CoverageStatisticView

public CoverageStatisticView(org.eclipse.swt.widgets.Composite parent,
                             TraceViewerPage page)
Method Detail

getContextHelpId

protected java.lang.String getContextHelpId()
Overrides:
getContextHelpId in class StatisticView

createColumnsLabelProviders

public void createColumnsLabelProviders()

isEmptyUpdate

public boolean isEmptyUpdate()
Specified by:
isEmptyUpdate in class MultiLevelStatisticView

getDefaultColumnsTemplatePackageLevel

protected java.lang.String getDefaultColumnsTemplatePackageLevel()
Specified by:
getDefaultColumnsTemplatePackageLevel in class MultiLevelStatisticView

getDefaultColumnsTemplateClassLevel

protected java.lang.String getDefaultColumnsTemplateClassLevel()
Specified by:
getDefaultColumnsTemplateClassLevel in class MultiLevelStatisticView

getDefaultColumnsTemplateMethodLevel

protected java.lang.String getDefaultColumnsTemplateMethodLevel()
Specified by:
getDefaultColumnsTemplateMethodLevel in class MultiLevelStatisticMethodView

getDefaultColumnsTemplate

public java.lang.String getDefaultColumnsTemplate()
Overrides:
getDefaultColumnsTemplate in class MultiLevelStatisticMethodView

getColumnsPreferencesKey

public java.lang.String getColumnsPreferencesKey()
Specified by:
getColumnsPreferencesKey in class MultiLevelStatisticView

getContentProvider

public org.eclipse.jface.viewers.IContentProvider getContentProvider()
Specified by:
getContentProvider in class MultiLevelStatisticView

getTableLabelProvider

public org.eclipse.jface.viewers.LabelProvider getTableLabelProvider()
Specified by:
getTableLabelProvider in class MultiLevelStatisticView

getViewerSorterInstance

protected StatisticView.StatisticSorter getViewerSorterInstance()
Specified by:
getViewerSorterInstance in class MultiLevelStatisticView

getFilterInstance

protected StatisticView.StatisticFilter getFilterInstance()
Specified by:
getFilterInstance in class MultiLevelStatisticView

getViewTypeStr

protected java.lang.String getViewTypeStr()
Specified by:
getViewTypeStr in class MultiLevelStatisticView

updateModelSelection

public void updateModelSelection()
Update the "model selection" when an element is selected in the table

Overrides:
updateModelSelection in class MultiLevelStatisticView

expandFirstElement

protected void expandFirstElement()
expand the fisrt element of the table which is "Summary"

Overrides:
expandFirstElement in class StatisticView

menuAboutToShow

public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Called when the context menu is about to open.

Overrides:
menuAboutToShow in class MultiLevelStatisticView
See Also:
IFillMenuTarget#fillContextMenu

setLevel

public void setLevel(int i)
Specified by:
setLevel in class MultiLevelStatisticView

getLevel

public int getLevel()
Specified by:
getLevel in class MultiLevelStatisticView

getItemModelData

protected java.lang.Object getItemModelData(org.eclipse.swt.widgets.TreeItem item)
Overrides:
getItemModelData in class MultiLevelStatisticView

getItemsRoot

protected org.eclipse.swt.widgets.TreeItem getItemsRoot(org.eclipse.swt.widgets.Tree tree)
Overrides:
getItemsRoot in class MultiLevelStatisticView

showPercentUpdate

protected void showPercentUpdate()
Overrides:
showPercentUpdate in class StatisticView

getColumnDisplayInfo

protected ColumnDisplayInfo getColumnDisplayInfo(ColumnLabelAdapter col,
                                                 boolean isDeltaColumn)
Overrides:
getColumnDisplayInfo in class StatisticView

TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification