TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification

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

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

public class ExecutionStatistic
extends StatisticView
implements ITimeChangedListener


Nested Class Summary
 class ExecutionStatistic.ExecutionStatisticContentProvider
           
 class ExecutionStatistic.ExecutionStatisticFilter
           
 class ExecutionStatistic.ExecutionStatisticLableProvider
           
 class ExecutionStatistic.ExecutionStatisticSorter
           
 
Nested classes inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
StatisticView.StatisticFilter, StatisticView.StatisticSorter
 
Field Summary
protected  ContextInfoContainer _contextInfo
           
protected  ColumnLabelAdapter _cumulativeTimeCol
           
protected  ColumnLabelAdapter _instanceNameCol
           
protected  ColumnLabelAdapter _methodInvocationEntryTimeCol
           
protected  ColumnLabelAdapter _methodNameCol
           
protected  ColumnLabelAdapter _threadNameCol
           
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
ExecutionStatistic(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  void firstTimeUpdate()
           
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.
 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.
 void setDrawMode(int mode)
           
protected  void showPercentUpdate()
           
 void update()
           
 void updateButtons()
           
protected  void updateDetailsPane()
           
 void updateModelSelection()
           
protected  void updateStatusContext(org.eclipse.hyades.ui.provisional.context.IContextLanguage language)
           
protected  int updateTableGetColumnNumber()
           
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
buildPreferenceStoreSring, compareElements, contextChanged, controlMoved, controlResized, createContent, createTreeViewer, expandFirstElement, 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, postUpdateEvents, refresh, resetColumns, selectionChanged, setLinesVisible, setNewSelection, setRedrawTable, showingDeltaColumns, showNewSelection, updateContext, 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

_threadNameCol

protected ColumnLabelAdapter _threadNameCol

_methodNameCol

protected ColumnLabelAdapter _methodNameCol

_instanceNameCol

protected ColumnLabelAdapter _instanceNameCol

_methodInvocationEntryTimeCol

protected ColumnLabelAdapter _methodInvocationEntryTimeCol

_cumulativeTimeCol

protected ColumnLabelAdapter _cumulativeTimeCol
Constructor Detail

ExecutionStatistic

public ExecutionStatistic(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

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

getViewerSorterInstance

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

firstTimeUpdate

protected void firstTimeUpdate()
Overrides:
firstTimeUpdate in class StatisticView

updateTableGetColumnNumber

protected int updateTableGetColumnNumber()
Overrides:
updateTableGetColumnNumber in class StatisticView

handleTimeChangedEvent

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

dispose

public void dispose()
Overrides:
dispose in class StatisticView

getContentProvider

public 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

handleViewSelectionChangedEvent

public void handleViewSelectionChangedEvent(ViewSelectionChangedEvent event)

isEmpty

public boolean isEmpty()

getViewTypeStr

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

getDrawMode

public int getDrawMode()
Returns:
Returns the _drawMode.

setDrawMode

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

showPercentUpdate

protected void showPercentUpdate()
Overrides:
showPercentUpdate in class StatisticView

getColumnDisplayInfo

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

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