TPTP 4.6.0 Platform Project
Internal API Specification

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

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

public class MethodInvocationStatistic
extends MultiLevelStatisticView
implements ITimeChangedListener


Nested Class Summary
 class MethodInvocationStatistic.ExecutionStatisticFilter
           
 class MethodInvocationStatistic.MethodStatisticCellLabelProvider
           
 class MethodInvocationStatistic.MethodStatisticContentProvider
           
 class MethodInvocationStatistic.MethodStatisticLabelProvider
           
 class MethodInvocationStatistic.MethodStatisticSorter
           
 
Nested classes/interfaces inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
MultiLevelStatisticView.MultiLevelStatisticContentProvider, MultiLevelStatisticView.MultiLevelStatisticLabelProvider, MultiLevelStatisticView.MultiLevelStatisticSorter
 
Nested classes/interfaces 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  SinglePatternTab _tabItem
           
protected  java.lang.String tmpString
           
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
CLASS_LEVEL, DEFAULT_LEVEL, PACKAGE_LEVEL, PREFERENCE_KEY_PREFIX
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
_activeInst, _activeSize, _chooseColumnAction, _chooseColumnsAction, _collectedInst, _currentColumns, _dataPane, _deltaColumns, _deltaColumnsAction, _filterContainer, _firstTime, _initialized, _isShowPercent, _layout, _listOfColumExtension, _maxTime, _newSelection, _page, _refresh, _showPercent, _sortByColumnAction, _templateOfColumExtension, _toolkit, _totalBaseTime, _totalCalls, _totalCumulativeTime, _totalInheritedBaseTime, _totalInheritedCumulativeTime, _totalInst, _totalPackagesCumulativeTime, _totalSize, _updateAction, _viewComp, _viewContainer, _viewer, _viewerFilter, _viewerSorter, adaptor, fSeparator, tmpList, wrappedLp
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.AbstractLazyHandler
LAZY_HANDLE_SELECTION_EVENT, LAZY_HANDLE_VIEWER_SELECTION_EVENT, LAZY_REFRESH, LAZY_UPDATE, LAZY_UPDATE_BUTTONS, LAZY_UPDATE_UI, LAZY_UPDATE_WITH_REFRESH, lazyOperations, lazySelectionEventSource
 
Constructor Summary
MethodInvocationStatistic(org.eclipse.swt.widgets.Composite parent, SinglePatternTab tabItem)
           
 
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)
          Create the table tree widget
 void dispose()
           
protected  void doHandleSelectionEvent(boolean isPostponedOperation, int processedOperations)
          The same element must be selected in all the statistics views
protected  void doHandleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event, boolean isPostponedOperation, int processedOperations)
          if the selection event is sent by the active tree: discard the event else handle it
protected  void doUpdate(boolean refresh, boolean isPostponedOperation, int processedOperations)
           
protected  void doUpdateButtons(boolean isPostponedOperation, int processedOperations)
           
protected  void firstTimeUpdate()
           
 org.eclipse.jface.viewers.CellLabelProvider getCellLabelProvider(ColumnData colData)
           
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()
           
protected  java.lang.String getDefaultColumnsTemplateClassLevel()
           
protected  java.lang.String getDefaultColumnsTemplatePackageLevel()
           
 int getDrawMode()
           
protected  StatisticView.StatisticFilter getFilterInstance()
           
 int getLevel()
           
 org.eclipse.jface.viewers.LabelProvider getTableLabelProvider()
           
 org.eclipse.swt.widgets.Tree getTree()
          return the table widget
protected  org.eclipse.jface.viewers.TreeViewer getTreeViewer(org.eclipse.swt.widgets.Tree tree)
           
protected  StatisticView.StatisticSorter getViewerSorterInstance()
           
protected  java.lang.String getViewTypeStr()
           
 void handleTimeChangedEvent()
           
 boolean isEmpty()
           
 boolean isEmptyUpdate()
           
protected  boolean isHandleSelectionEventNeeded(java.lang.Object source)
           
 void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
          Called when the context menu is about to open.
protected  void postUpdateEvents()
           
 void redrawTable()
          Redraw the tree to display the three levels (package level, class level and method level)
protected  void resetColumms()
           
 void setDrawMode(int mode)
           
 void setLevel(int i)
           
protected  void updateDetailsPane()
           
 void updateModelSelection()
          Update the "model selection" when an element is selected in the tree
protected  void updateStatusContext(org.eclipse.hyades.ui.provisional.context.IContextLanguage language)
           
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView
canOpenSourceOnThisObject, getColumnsTemplateExtensions, getCurrentFilter, getItemModelData, getItemsRoot, handleHidden, handleVisible, openSourceForSelection, resetChooseColumnsAction, resetColumns, searchInClassLevel, searchInLevel, searchInMethodLevel, searchInObjectLevel, searchInPackageLevel, searchItem, updateButtons, widgetSelected
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.StatisticView
buildPreferenceStoreSring, compareElements, contextChanged, controlMoved, controlResized, createContent, createTreeViewer, doRefresh, doUpdateUI, expandFirstElement, getChooseColumnsAction, getColumnDataList, getColumnInfo, getContext, getControl, getDataPane, getDeltaColumnsAction, getElementColumnImage, getElementColumnText, getLayout, getShowPercentAction, getSortByColumnAction, getToolkit, getTraceViewerPage, getTreeViewer, getUpdateAction, getViewComponent, getViewerFilter, getViewerSorter, handleDeltaChanged, handlePercentChanged, isShowPercent, notifyViewSelectionChanged, parseExtensions, refresh, selectionChanged, setLinesVisible, setNewSelection, setRedrawTable, showingDeltaColumns, showNewSelection, showPercentUpdate, update, updateContext, updateTableGetColumnNumber, updateUI, widgetDefaultSelected
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.AbstractLazyHandler
addPostponedSelectionEventSource, checkSetLazyOperation, checkSetLazyUpdateOperation, checkSetLazyViewerSelectionOperation, doProcessLazyPostponedOperations, handleSelectionEvent, handleViewSelectionChangedEvent, isLazyMode, isVisible, lazyHandlesOpType, nextPostponedSelectionEventSource, processLazyPostponedOperations, setHidden, setLazyMode, setVisible, update, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.hyades.trace.ui.IViewSelectionChangedListener
handleViewSelectionChangedEvent
 

Field Detail

tmpString

protected java.lang.String tmpString

_tabItem

protected SinglePatternTab _tabItem

_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,
                                 SinglePatternTab tabItem)
Method Detail

createTree

protected org.eclipse.swt.widgets.Composite createTree(org.eclipse.swt.widgets.Composite parent,
                                                       int options)
Description copied from class: MultiLevelStatisticView
Create the table tree widget

Overrides:
createTree in class MultiLevelStatisticView

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 MultiLevelStatisticView
Returns:
java.lang.String key name

getDefaultColumnsTemplate

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

getContentProvider

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

getCellLabelProvider

public org.eclipse.jface.viewers.CellLabelProvider getCellLabelProvider(ColumnData colData)
Specified by:
getCellLabelProvider in class StatisticView

getTableLabelProvider

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

getTree

public org.eclipse.swt.widgets.Tree getTree()
Description copied from class: MultiLevelStatisticView
return the table widget

Overrides:
getTree in class MultiLevelStatisticView

getTreeViewer

protected org.eclipse.jface.viewers.TreeViewer getTreeViewer(org.eclipse.swt.widgets.Tree tree)
Overrides:
getTreeViewer in class MultiLevelStatisticView

doHandleSelectionEvent

protected void doHandleSelectionEvent(boolean isPostponedOperation,
                                      int processedOperations)
Description copied from class: MultiLevelStatisticView
The same element must be selected in all the statistics views

Overrides:
doHandleSelectionEvent in class MultiLevelStatisticView

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

doUpdateButtons

protected void doUpdateButtons(boolean isPostponedOperation,
                               int processedOperations)
Overrides:
doUpdateButtons in class MultiLevelStatisticView

updateDetailsPane

protected void updateDetailsPane()

updateModelSelection

public void updateModelSelection()
Description copied from class: MultiLevelStatisticView
Update the "model selection" when an element is selected in the tree

Overrides:
updateModelSelection in class MultiLevelStatisticView

dispose

public void dispose()
Overrides:
dispose in class MultiLevelStatisticView

handleTimeChangedEvent

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

getViewerSorterInstance

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

postUpdateEvents

protected void postUpdateEvents()
Overrides:
postUpdateEvents in class StatisticView

isHandleSelectionEventNeeded

protected boolean isHandleSelectionEventNeeded(java.lang.Object source)
Overrides:
isHandleSelectionEventNeeded in class AbstractLazyHandler

doHandleViewSelectionChangedEvent

protected void doHandleViewSelectionChangedEvent(org.eclipse.hyades.trace.ui.ViewSelectionChangedEvent event,
                                                 boolean isPostponedOperation,
                                                 int processedOperations)
Description copied from class: MultiLevelStatisticView
if the selection event is sent by the active tree: discard the event else handle it

Overrides:
doHandleViewSelectionChangedEvent in class MultiLevelStatisticView

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class MultiLevelStatisticView

getViewTypeStr

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

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 MultiLevelStatisticView

updateStatusContext

protected void updateStatusContext(org.eclipse.hyades.ui.provisional.context.IContextLanguage language)
Overrides:
updateStatusContext in class MultiLevelStatisticView

firstTimeUpdate

protected void firstTimeUpdate()
Overrides:
firstTimeUpdate in class StatisticView

redrawTable

public void redrawTable()
Description copied from class: MultiLevelStatisticView
Redraw the tree to display the three levels (package level, class level and method level)

Overrides:
redrawTable in class MultiLevelStatisticView

doUpdate

protected void doUpdate(boolean refresh,
                        boolean isPostponedOperation,
                        int processedOperations)
Overrides:
doUpdate in class MultiLevelStatisticView

resetColumms

protected void resetColumms()

getDefaultColumnsTemplateClassLevel

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

getDefaultColumnsTemplatePackageLevel

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

getFilterInstance

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

getLevel

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

isEmptyUpdate

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

setLevel

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

TPTP 4.6.0 Platform Project
Internal API Specification