TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification

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

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

public class MethodInvocationStatistic
extends StatisticView
implements ITimeChangedListener


Nested Class Summary
 class MethodInvocationStatistic.ExecutionStatisticFilter
           
 class MethodInvocationStatistic.MethodStatisticContentProvider
           
 class MethodInvocationStatistic.MethodStatisticLabelProvider
           
 class MethodInvocationStatistic.MethodStatisticSorter
           
 
Nested classes inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
StatisticView.StatisticFilter, StatisticView.StatisticSorter
 
Field Summary
protected  ContextInfoContainer _contextInfo
           
protected  ColumnLabelAdapter _CPUTimeCol
           
protected  ColumnLabelAdapter _cumulativeTimeCol
           
protected  ColumnLabelAdapter _instanceNameCol
           
protected  ColumnLabelAdapter _methodInvocationCol
           
protected  ColumnLabelAdapter _methodInvocationEntryTimeCol
           
protected  java.lang.String tmpString
           
 
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
MethodInvocationStatistic(org.eclipse.swt.widgets.Composite parent, TraceViewerPage page)
           
 
Method Summary
 void createColumnsLabelProviders()
           
protected  org.eclipse.swt.widgets.Composite createControl(org.eclipse.swt.widgets.Composite parent, java.util.ArrayList cols)
           
protected  org.eclipse.swt.widgets.Composite createTree(org.eclipse.swt.widgets.Composite parent, int options)
           
 void dispose()
           
protected  ColumnDisplayInfo getColumnDisplayInfo(ColumnLabelAdapter col, boolean isDeltaColumn)
           
 java.lang.String getColumnsPreferencesKey()
          getClassColumnsPerferencesKey returns the string key used to find the column preferences information in the preferences store.
protected  org.eclipse.jface.viewers.IContentProvider getContentProvider()
           
protected  java.lang.String getContextHelpId()
           
 java.lang.String getDefaultColumnsTemplate()
           
 int getDrawMode()
           
 org.eclipse.jface.viewers.LabelProvider getTableLabelProvider()
           
 org.eclipse.swt.widgets.Tree getTree()
           
protected  org.eclipse.jface.viewers.TreeViewer getTreeViewer(org.eclipse.swt.widgets.Tree tree)
           
protected  StatisticView.StatisticSorter getViewerSorterInstance()
           
protected  java.lang.String getViewTypeStr()
           
protected  void handleSelectionEvent()
           
 void handleTimeChangedEvent()
           
 void handleViewSelectionChangedEvent(ViewSelectionChangedEvent event)
           
 boolean isEmpty()
           
 void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
          Called when the context menu is about to open.
protected  void postUpdateEvents()
           
 void setDrawMode(int mode)
           
 void update()
           
 void updateButtons()
           
protected  void updateDetailsPane()
           
 void updateModelSelection()
           
protected  void updateStatusContext(org.eclipse.hyades.ui.provisional.context.IContextLanguage language)
           
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
buildPreferenceStoreSring, compareElements, contextChanged, controlMoved, controlResized, createContent, createTreeViewer, expandFirstElement, firstTimeUpdate, getChooseColumnsAction, getColumnDataList, getColumnInfo, getContext, getControl, getDataPane, getDeltaColumnsAction, getElementColumnImage, getElementColumnText, getLayout, getShowPercentAction, getSortByColumnAction, getToolkit, getTraceViewerPage, getTreeViewer, getUpdateAction, getViewComponent, getViewerFilter, getViewerSorter, handleDeltaChanged, handlePercentChanged, isShowPercent, notifyViewSelectionChanged, openSourceForSelection, parseExtensions, refresh, resetColumns, selectionChanged, setLinesVisible, setNewSelection, setRedrawTable, showingDeltaColumns, showNewSelection, showPercentUpdate, updateContext, updateTableGetColumnNumber, updateUI, widgetDefaultSelected, widgetSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tmpString

protected java.lang.String tmpString

_contextInfo

protected ContextInfoContainer _contextInfo

_methodInvocationCol

protected ColumnLabelAdapter _methodInvocationCol

_instanceNameCol

protected ColumnLabelAdapter _instanceNameCol

_methodInvocationEntryTimeCol

protected ColumnLabelAdapter _methodInvocationEntryTimeCol

_cumulativeTimeCol

protected ColumnLabelAdapter _cumulativeTimeCol

_CPUTimeCol

protected ColumnLabelAdapter _CPUTimeCol
Constructor Detail

MethodInvocationStatistic

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

createTree

protected org.eclipse.swt.widgets.Composite createTree(org.eclipse.swt.widgets.Composite parent,
                                                       int options)
Specified by:
createTree in class StatisticView

getContextHelpId

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

createColumnsLabelProviders

public void createColumnsLabelProviders()

getColumnsPreferencesKey

public java.lang.String getColumnsPreferencesKey()
getClassColumnsPerferencesKey returns the string key used to find the column preferences information in the preferences store.

Specified by:
getColumnsPreferencesKey in class StatisticView
Returns:
java.lang.String key name

getDefaultColumnsTemplate

public java.lang.String getDefaultColumnsTemplate()
Specified by:
getDefaultColumnsTemplate in class StatisticView

getContentProvider

protected org.eclipse.jface.viewers.IContentProvider getContentProvider()
Specified by:
getContentProvider in class StatisticView

getTableLabelProvider

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

getTree

public org.eclipse.swt.widgets.Tree getTree()
Specified by:
getTree in class StatisticView

getTreeViewer

protected org.eclipse.jface.viewers.TreeViewer getTreeViewer(org.eclipse.swt.widgets.Tree tree)
Specified by:
getTreeViewer in class StatisticView

handleSelectionEvent

protected void handleSelectionEvent()
Specified by:
handleSelectionEvent 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 StatisticView
See Also:
IFillMenuTarget#fillContextMenu

updateButtons

public void updateButtons()
Specified by:
updateButtons in class StatisticView

updateDetailsPane

protected void updateDetailsPane()

updateModelSelection

public void updateModelSelection()
Specified by:
updateModelSelection in class StatisticView

dispose

public void dispose()
Overrides:
dispose in class StatisticView

handleTimeChangedEvent

public void handleTimeChangedEvent()
Specified by:
handleTimeChangedEvent in interface ITimeChangedListener

getViewerSorterInstance

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

postUpdateEvents

protected void postUpdateEvents()
Overrides:
postUpdateEvents in class StatisticView

handleViewSelectionChangedEvent

public void handleViewSelectionChangedEvent(ViewSelectionChangedEvent event)

isEmpty

public boolean isEmpty()

getViewTypeStr

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

getColumnDisplayInfo

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

getDrawMode

public int getDrawMode()
Returns:
Returns the _drawMode.

setDrawMode

public void setDrawMode(int mode)
Parameters:
mode - The _drawMode to set.

createControl

protected org.eclipse.swt.widgets.Composite createControl(org.eclipse.swt.widgets.Composite parent,
                                                          java.util.ArrayList cols)
Overrides:
createControl in class StatisticView

updateStatusContext

protected void updateStatusContext(org.eclipse.hyades.ui.provisional.context.IContextLanguage language)

update

public void update()
Overrides:
update in class StatisticView

TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification