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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    MethodListView(org.eclipse.swt.widgets.Composite parent, IBslModuleLocator moduleLocator, IInvocationCountChecker invocationsChecker)
    Creates new method list view.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Collapses the tree.
    void
    Expands the tree.
    void
    filter(String pattern)
    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
    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
    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

  • 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 be null.
      moduleLocator - BSL module locator to be used for module lookup. Cannot be null.
      invocationsChecker - Service to check for invocation count distortion. Cannot be null.
  • Method Details

    • getToolTip

      public String getToolTip()
      Description copied from interface: IProfilingViewPart
      Gets tooltip to be associated with button opening this view.
      Specified by:
      getToolTip in interface IProfilingViewPart
      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 interface IProfilingViewPart
      Returns:
      Descriptor of image to be shown. Never null.
    • resultSelected

      public void resultSelected(IProfilingResult result)
      Refreshes statistics shown in table and combo. After setting new statistics redraws table to show it and selects it in combo.
      If passed result is null, clears the table.
      Specified by:
      resultSelected in interface IResultChangeListener
      Parameters:
      result - Selected result. Can be null if results cache is cleared.
    • setVisible

      public void setVisible(boolean visible)
      Description copied from interface: IProfilingViewPart
      Shows/hides this composite.
      Specified by:
      setVisible in interface IProfilingViewPart
      Overrides:
      setVisible in class org.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 interface IResultChangeListener
      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

      public void setSelection(List<ILineProfilingResult> result)
      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 interface IProfilingViewPart
      Parameters:
      result - Results to calculate the selection. Can not be null.
    • filter

      public void filter(String pattern)
      Description copied from interface: IProfilingViewPart
      Sets pattern to be used to filter profiling results being shown in this part.
      Specified by:
      filter in interface IProfilingViewPart
      Parameters:
      pattern - Pattern to be used. Cannot be null, 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 interface IProfilingViewTreePart
    • expandAll

      public void expandAll()
      Description copied from interface: IProfilingViewTreePart
      Expands the tree.
      Specified by:
      expandAll in interface IProfilingViewTreePart
    • 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 interface IProfilingViewTreePart
      Parameters:
      group - true if methods are grouped by modules, false otherwise.