Class MethodListView
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com._1c.g5.v8.dt.internal.profiling.ui.view.methodlist.MethodListView
- All Implemented Interfaces:
IProfilingViewPart
,IProfilingViewTreePart
,IResultChangeListener
,org.eclipse.swt.graphics.Drawable
public class MethodListView
extends org.eclipse.swt.widgets.Composite
implements IProfilingViewTreePart
Method list view. Is built in
ProfilingView
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Fields inherited from class org.eclipse.swt.widgets.Control
handle
-
Constructor Summary
ConstructorsConstructorDescriptionMethodListView
(org.eclipse.swt.widgets.Composite parent, IBslModuleLocator moduleLocator, IInvocationCountChecker invocationsChecker) Creates new method list view. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Collapses the tree.void
Expands the tree.void
Sets pattern to be used to filter profiling results being shown in this part.org.eclipse.jface.resource.ImageDescriptor
Gets the descriptor of image that will be associated with button opening this view.Gets tooltip to be associated with button opening this view.void
resultSelected
(IProfilingResult result) Refreshes statistics shown in table and combo.void
setGroupModules
(boolean group) Sets the flag determining whether methods should be grouped by modules of not.void
setSelection
(List<ILineProfilingResult> result) Sets selection on results (line results in table, method results in method list, etc.)void
setVisible
(boolean visible) Shows/hides this composite.void
showTargets
(boolean showClient, boolean showServer, boolean showMobileManagedServer) Called when client or server results are hidden or shown.Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.swt.graphics.Drawable
isAutoScalable
-
Field Details
-
METHOD_COLUMN
public static final int METHOD_COLUMN- See Also:
-
CALLS_COLUMN
public static final int CALLS_COLUMN- See Also:
-
FULL_TIME_COLUMN
public static final int FULL_TIME_COLUMN- See Also:
-
CLEAN_TIME_COLUMN
public static final int CLEAN_TIME_COLUMN- See Also:
-
SERVER_CALL_COLUMN
public static final int SERVER_CALL_COLUMN- See Also:
-
-
Constructor Details
-
MethodListView
public MethodListView(org.eclipse.swt.widgets.Composite parent, IBslModuleLocator moduleLocator, IInvocationCountChecker invocationsChecker) Creates new method list view.- Parameters:
parent
- Composite to attach view to. Cannot benull
.moduleLocator
- BSL module locator to be used for module lookup. Cannot benull
.invocationsChecker
- Service to check for invocation count distortion. Cannot benull
.
-
-
Method Details
-
getToolTip
Description copied from interface:IProfilingViewPart
Gets tooltip to be associated with button opening this view.- Specified by:
getToolTip
in interfaceIProfilingViewPart
- Returns:
- Tooltip to be shown. Never
null
.
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()Description copied from interface:IProfilingViewPart
Gets the descriptor of image that will be associated with button opening this view.- Specified by:
getImageDescriptor
in interfaceIProfilingViewPart
- Returns:
- Descriptor of image to be shown. Never
null
.
-
resultSelected
Refreshes statistics shown in table and combo. After setting new statistics redraws table to show it and selects it in combo.
If passed result isnull
, clears the table.- Specified by:
resultSelected
in interfaceIResultChangeListener
- Parameters:
result
- Selected result. Can benull
if results cache is cleared.
-
setVisible
public void setVisible(boolean visible) Description copied from interface:IProfilingViewPart
Shows/hides this composite.- Specified by:
setVisible
in interfaceIProfilingViewPart
- Overrides:
setVisible
in classorg.eclipse.swt.widgets.Control
- Parameters:
visible
-true
if needed to be shown,false
otherwise.
-
showTargets
public void showTargets(boolean showClient, boolean showServer, boolean showMobileManagedServer) Description copied from interface:IResultChangeListener
Called when client or server results are hidden or shown.- Specified by:
showTargets
in interfaceIResultChangeListener
- Parameters:
showClient
-true
if client results are shown,false
otherwise.showServer
-true
if server results are shown,false
otherwise.showMobileManagedServer
-true
if moble standalone server results are shown,false
otherwise.
-
setSelection
Description copied from interface:IProfilingViewPart
Sets selection on results (line results in table, method results in method list, etc.) associated with specified line results.- Specified by:
setSelection
in interfaceIProfilingViewPart
- Parameters:
result
- Results to calculate the selection. Can not benull
.
-
filter
Description copied from interface:IProfilingViewPart
Sets pattern to be used to filter profiling results being shown in this part.- Specified by:
filter
in interfaceIProfilingViewPart
- Parameters:
pattern
- Pattern to be used. Cannot benull
, but can be empty. If empty, all results are shown.
-
collapseAll
public void collapseAll()Description copied from interface:IProfilingViewTreePart
Collapses the tree.- Specified by:
collapseAll
in interfaceIProfilingViewTreePart
-
expandAll
public void expandAll()Description copied from interface:IProfilingViewTreePart
Expands the tree.- Specified by:
expandAll
in interfaceIProfilingViewTreePart
-
setGroupModules
public void setGroupModules(boolean group) Description copied from interface:IProfilingViewTreePart
Sets the flag determining whether methods should be grouped by modules of not.- Specified by:
setGroupModules
in interfaceIProfilingViewTreePart
- Parameters:
group
-true
if methods are grouped by modules,false
otherwise.
-