TPTP 4.2.0 Platform Project
Internal API Specification

org.eclipse.hyades.trace.views.adapter.internal
Class MultiLevelStatisticViewer

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.ui.part.WorkbenchPart
          extended byorg.eclipse.ui.part.ViewPart
              extended byorg.eclipse.hyades.trace.ui.TraceViewer
                  extended byorg.eclipse.hyades.trace.ui.FilterTraceViewer
                      extended byorg.eclipse.hyades.trace.views.adapter.internal.MultiLevelStatisticViewer
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IContextViewer, org.eclipse.hyades.trace.ui.IDeleteListener, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.hyades.ui.extension.IExportViewer, org.eclipse.hyades.ui.filters.IFilterViewer, org.eclipse.jface.action.IMenuListener, org.eclipse.ui.IPersistable, org.eclipse.hyades.trace.ui.IProfileEventListener, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation
Direct Known Subclasses:
MemoryStatisticViewer, MultiLevelStatisticMethodViewer

public abstract class MultiLevelStatisticViewer
extends org.eclipse.hyades.trace.ui.FilterTraceViewer
implements IContextViewer


Field Summary
protected  org.eclipse.jface.action.Action _chooseColumns
           
protected  org.eclipse.jface.action.Action _classLevel
           
protected  java.lang.String _context
           
protected  boolean _contextChanged
           
protected  ContextSelectionMenuListener _contextSelectionMenuListener
           
protected  org.eclipse.jface.action.Action _openSource
           
protected  org.eclipse.jface.action.Action _packageLevel
           
protected  org.eclipse.jface.action.Action _sortByColumn
           
 
Fields inherited from class org.eclipse.hyades.trace.ui.TraceViewer
_initializedMenu, _mofObject, _pages, _printColumns, contextHandlerSelectionChanged, fContextMenu, fForceRefresh, fPartListener, fPartVisible, fRefreshView, GROUP_ADD_VIEWS, GROUP_GENERIC
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
MultiLevelStatisticViewer()
           
 
Method Summary
 boolean contextChanged()
           
abstract  org.eclipse.hyades.trace.ui.TraceViewerPage createPage(org.eclipse.emf.ecore.EObject mofObject)
           
 void dispose()
           
 void filterUpdated()
           
protected  void getActions(java.util.Vector actions)
           
 org.eclipse.jface.action.Action getClassLevel()
           
 ContextSelectionMenuListener getContextSelectionMenuListener()
           
 org.eclipse.jface.viewers.Viewer[] getExportViewer()
           
 java.lang.String[] getFilterScope()
           
protected  void getLevelActions(java.util.Vector actions)
           
 org.eclipse.emf.ecore.EObject getObjectToView(org.eclipse.emf.ecore.EObject selObject)
          return the selected agent in the Profiling monitor view called by addViewPage() -handelProfileEvent() - refreshVisiblePage()and removePage() of the parent class (TraceViewer)
 org.eclipse.jface.action.Action getPackageLevel()
           
 java.lang.String getSelectedContext()
           
 java.lang.Object[] getViewerControls()
           
abstract  java.lang.String getViewTitle()
           
 void makeActions()
          Three action buttons are defined: -packageLevel: display all the tree (package/class/method) -classlevel: display only the class tree -method level: display only the methods
 org.eclipse.jface.action.Action openSource()
           
protected  void revertChecked(org.eclipse.jface.action.Action action)
           
protected  void setActionProperties(org.eclipse.jface.action.Action action, java.lang.String context, java.lang.String attributeId)
           
protected  void setActionsNull()
           
 void setCheckedLevels(MultiLevelStatisticPage page, int newLevel)
           
 void setFocus()
          set the focus on the current page
 void setSelectedContext(java.lang.String context)
           
 void setSelectedContext(java.lang.String context, boolean refresh)
           
 void showPage(org.eclipse.ui.part.IPage page)
          Shows the given page
 void updateContext()
           
 
Methods inherited from class org.eclipse.hyades.trace.ui.FilterTraceViewer
advancedQuery, getCurrentFilter, getFilterInformationManager, setContentDescription, setFilterQueryProvider, standardQuery, updateAdvancedQuery, updateFilterAppliedDescription
 
Methods inherited from class org.eclipse.hyades.trace.ui.TraceViewer
addViewPage, addViewPage, contextHandlerSelectionChanged, createDefaultPage, createPartControl, deregister, enableEditActions, getCurrentPage, getDefaultPageMessage, getModelObject, getPage, getViewerTitle, handleProfileEvent, init, init, initializeActionBar, initializedMenu, isFPartVisible, isFRefreshView, isImportant, isInitializedMenu, isProcessRefreshEvents, isSaveNeeded, menuAboutToShow, refreshPage, refreshVisiblePage, removePage, selectionChanged, selectionChanged, setFPartVisible, setFRefreshView, setRecordSelection, setViewTitle
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, saveState, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

_packageLevel

protected org.eclipse.jface.action.Action _packageLevel

_classLevel

protected org.eclipse.jface.action.Action _classLevel

_openSource

protected org.eclipse.jface.action.Action _openSource

_chooseColumns

protected org.eclipse.jface.action.Action _chooseColumns

_sortByColumn

protected org.eclipse.jface.action.Action _sortByColumn

_contextSelectionMenuListener

protected ContextSelectionMenuListener _contextSelectionMenuListener

_context

protected java.lang.String _context

_contextChanged

protected boolean _contextChanged
Constructor Detail

MultiLevelStatisticViewer

public MultiLevelStatisticViewer()
Method Detail

getViewTitle

public abstract java.lang.String getViewTitle()

createPage

public abstract org.eclipse.hyades.trace.ui.TraceViewerPage createPage(org.eclipse.emf.ecore.EObject mofObject)

setCheckedLevels

public void setCheckedLevels(MultiLevelStatisticPage page,
                             int newLevel)

getObjectToView

public org.eclipse.emf.ecore.EObject getObjectToView(org.eclipse.emf.ecore.EObject selObject)
return the selected agent in the Profiling monitor view called by addViewPage() -handelProfileEvent() - refreshVisiblePage()and removePage() of the parent class (TraceViewer)


dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
See Also:
IWorkbenchPart.dispose()

setActionsNull

protected void setActionsNull()

setFocus

public void setFocus()
set the focus on the current page

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart

getLevelActions

protected void getLevelActions(java.util.Vector actions)

getActions

protected void getActions(java.util.Vector actions)

showPage

public void showPage(org.eclipse.ui.part.IPage page)
Shows the given page


makeActions

public void makeActions()
Three action buttons are defined: -packageLevel: display all the tree (package/class/method) -classlevel: display only the class tree -method level: display only the methods


getClassLevel

public org.eclipse.jface.action.Action getClassLevel()
Returns:
the class level action

getPackageLevel

public org.eclipse.jface.action.Action getPackageLevel()
Returns:
the package level action

openSource

public org.eclipse.jface.action.Action openSource()

revertChecked

protected void revertChecked(org.eclipse.jface.action.Action action)

getFilterScope

public java.lang.String[] getFilterScope()
Specified by:
getFilterScope in interface org.eclipse.hyades.ui.filters.IFilterViewer

filterUpdated

public void filterUpdated()
Specified by:
filterUpdated in interface org.eclipse.hyades.ui.filters.IFilterViewer

setActionProperties

protected void setActionProperties(org.eclipse.jface.action.Action action,
                                   java.lang.String context,
                                   java.lang.String attributeId)

getContextSelectionMenuListener

public ContextSelectionMenuListener getContextSelectionMenuListener()
Specified by:
getContextSelectionMenuListener in interface IContextViewer

updateContext

public void updateContext()
Specified by:
updateContext in interface IContextViewer

getViewerControls

public java.lang.Object[] getViewerControls()
Specified by:
getViewerControls in interface org.eclipse.hyades.ui.extension.IExportViewer
Returns:
control containing the data to be exported

getExportViewer

public org.eclipse.jface.viewers.Viewer[] getExportViewer()
Specified by:
getExportViewer in interface org.eclipse.hyades.ui.extension.IExportViewer
Returns:
viewers associated with this view, if applicable can be a TreeViewer, TableTreeViewer or null if the view is not using a viewer

getSelectedContext

public java.lang.String getSelectedContext()
Specified by:
getSelectedContext in interface IContextViewer

contextChanged

public boolean contextChanged()
Specified by:
contextChanged in interface IContextViewer

setSelectedContext

public void setSelectedContext(java.lang.String context)
Specified by:
setSelectedContext in interface IContextViewer

setSelectedContext

public void setSelectedContext(java.lang.String context,
                               boolean refresh)
Specified by:
setSelectedContext in interface IContextViewer

TPTP 4.2.0 Platform Project
Internal API Specification