Package org.eclipse.epsilon.profiling.dt
Class ProfilerView
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.ViewPart
-
- org.eclipse.epsilon.profiling.dt.ProfilerView
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,IProfilerListener
,org.eclipse.ui.IPersistable
,org.eclipse.ui.IViewPart
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
public class ProfilerView extends org.eclipse.ui.part.ViewPart implements IProfilerListener
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
autoRefresh
protected static int
AVG_COLUMN
protected org.eclipse.swt.graphics.Image
completed
protected static int
CPU_COLUMN
protected static int
ORDER_COLUMN
protected OverviewViewer
overviewViewer
protected List<ProfilerTarget>
rootTargets
protected org.eclipse.swt.graphics.Image
running
protected boolean
showAggregatedWork
protected boolean
sortChildrenTargetsByTime
protected static int
TARGET_COLUMN
protected List<ProfilerTargetSummary>
targetSummaries
protected static int
TIMES_COLUMN
-
Constructor Summary
Constructors Constructor Description ProfilerView()
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createDetailsTree()
void
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it.protected void
createRulesTable()
protected void
createTargetsTable()
org.eclipse.jface.viewers.TableViewer
getViewer()
boolean
isAutoRefresh()
boolean
isShowAggregatedWork()
boolean
isSortChildrenTargetsByTime()
void
refresh()
void
setAutoRefresh(boolean autoRefresh)
void
setFocus()
Passing the focus request to the viewer's control.void
setShowAggregatedWork(boolean showAggregatedWork)
void
setSortChildrenTargetsByTime(boolean sortChildrenTargetsByTime)
void
targetStarted(String task)
void
targetStopped(String task)
-
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Field Detail
-
ORDER_COLUMN
protected static final int ORDER_COLUMN
- See Also:
- Constant Field Values
-
TARGET_COLUMN
protected static final int TARGET_COLUMN
- See Also:
- Constant Field Values
-
TIMES_COLUMN
protected static final int TIMES_COLUMN
- See Also:
- Constant Field Values
-
CPU_COLUMN
protected static final int CPU_COLUMN
- See Also:
- Constant Field Values
-
AVG_COLUMN
protected static final int AVG_COLUMN
- See Also:
- Constant Field Values
-
overviewViewer
protected OverviewViewer overviewViewer
-
autoRefresh
protected boolean autoRefresh
-
running
protected org.eclipse.swt.graphics.Image running
-
completed
protected org.eclipse.swt.graphics.Image completed
-
sortChildrenTargetsByTime
protected boolean sortChildrenTargetsByTime
-
showAggregatedWork
protected boolean showAggregatedWork
-
targetSummaries
protected List<ProfilerTargetSummary> targetSummaries
-
rootTargets
protected List<ProfilerTarget> rootTargets
-
-
Method Detail
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it.- Specified by:
createPartControl
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in classorg.eclipse.ui.part.WorkbenchPart
-
createDetailsTree
protected void createDetailsTree()
-
createTargetsTable
protected void createTargetsTable()
-
createRulesTable
protected void createRulesTable()
-
setFocus
public void setFocus()
Passing the focus request to the viewer's control.- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in classorg.eclipse.ui.part.WorkbenchPart
-
targetStarted
public void targetStarted(String task)
- Specified by:
targetStarted
in interfaceIProfilerListener
-
targetStopped
public void targetStopped(String task)
- Specified by:
targetStopped
in interfaceIProfilerListener
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceIProfilerListener
-
isAutoRefresh
public boolean isAutoRefresh()
-
setAutoRefresh
public void setAutoRefresh(boolean autoRefresh)
-
getViewer
public org.eclipse.jface.viewers.TableViewer getViewer()
-
isSortChildrenTargetsByTime
public boolean isSortChildrenTargetsByTime()
-
setSortChildrenTargetsByTime
public void setSortChildrenTargetsByTime(boolean sortChildrenTargetsByTime)
-
isShowAggregatedWork
public boolean isShowAggregatedWork()
-
setShowAggregatedWork
public void setShowAggregatedWork(boolean showAggregatedWork)
-
-