Class CallHierarchyViewPart

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com._1c.g5.v8.dt.bsl.ui.editor.callhierarchy.CallHierarchyViewPart
All Implemented Interfaces:
ICallHierarchyQueryListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, ISelectionChangedListener, 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 CallHierarchyViewPart extends org.eclipse.ui.part.ViewPart implements ISelectionChangedListener, ICallHierarchyQueryListener
Special view for Call hierarchy for Built-In language
  • Field Details

  • Constructor Details

    • CallHierarchyViewPart

      public CallHierarchyViewPart()
      Constructor
  • Method Details

    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      setFocus in class org.eclipse.ui.part.WorkbenchPart
    • getTreeViewer

      public TreeViewer getTreeViewer()
      Gets call hieerarchy tree viewer
      Returns:
      call hieerarchy tree viewer, can't be null
    • getCallMode

      public int getCallMode()
      Gets current Call hierarchy call mode
      Returns:
      current Call hierarchy call mode
    • setHistoryEntries

      public void setHistoryEntries(ICallHierarchyResult[] entries)
      Sets the history entries
      Parameters:
      entries - the new history entries, can't be null
    • isPinned

      public boolean isPinned()
      Gets actual state of action pin
      Returns:
      true if is pinned, false otherwise
    • getCurrentCallHierarchyResult

      public ICallHierarchyResult getCurrentCallHierarchyResult()
      Returns:
      current ICallHierarchyResult, can't be null
    • setPinned

      public void setPinned(boolean pinned)
      Change state of properties 'pin' of view
      Parameters:
      pinned - true if view should be is pinned, false otherwise
    • setInputElements

      public void setInputElements(ICallHierarchyResult member)
      Sets new input for showing call hierarchy
      Parameters:
      member - new ICallHierarchyResult, can be null if there is no for showing
    • refresh

      public void refresh()
      Refreshes view
    • saveState

      public void saveState(org.eclipse.ui.IMemento memento)
      Specified by:
      saveState in interface org.eclipse.ui.IPersistable
      Specified by:
      saveState in interface org.eclipse.ui.IViewPart
      Overrides:
      saveState in class org.eclipse.ui.part.ViewPart
    • getInputElements

      public ICallHierarchyResult getInputElements()
      Gets current input elements
      Returns:
      current input elements, can be null if there is no for showing
    • createPartControl

      public void createPartControl(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createPartControl in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      createPartControl in class org.eclipse.ui.part.WorkbenchPart
    • queryAdded

      public void queryAdded(ICallHierarchyQuery query)
      Description copied from interface: ICallHierarchyQueryListener
      Called when an query has been added to the system.
      Specified by:
      queryAdded in interface ICallHierarchyQueryListener
      Parameters:
      query - the query that has been added, can't be null
    • queryRemoved

      public void queryRemoved(ICallHierarchyQuery query)
      Description copied from interface: ICallHierarchyQueryListener
      Called when a query has been removed.
      Specified by:
      queryRemoved in interface ICallHierarchyQueryListener
      Parameters:
      query - the query that has been removed, can't be null
    • queryStarting

      public void queryStarting(ICallHierarchyQuery query)
      Description copied from interface: ICallHierarchyQueryListener
      Called before an ISearchQuery is starting.
      Specified by:
      queryStarting in interface ICallHierarchyQueryListener
      Parameters:
      query - the query about to start, can't be null
    • queryFinished

      public void queryFinished(ICallHierarchyQuery query)
      Description copied from interface: ICallHierarchyQueryListener
      Called after an ISearchQuery has finished.
      Specified by:
      queryFinished in interface ICallHierarchyQueryListener
      Parameters:
      query - the query that has finished, can't be null
    • getHistoryEntries

      public ICallHierarchyResult[] getHistoryEntries()
      Gets all elements if Call hierarchy history
      Returns:
      all elements if Call hierarchy history, can't be null
    • gotoHistoryEntry

      public void gotoHistoryEntry(ICallHierarchyResult entry)
      Shows call hierarchy from the element in history
      Parameters:
      entry - history call hierarchy element, can't be null
    • handleOpen

      public void handleOpen(ISelection selection)
      Open text editor by selection in call hierarchy view
      Parameters:
      selection - selection from call hierarchy view, can be null
    • handleFocusOn

      public void handleFocusOn(ISelection selection)
      Focuses on selection element from call hierarchy view
      Parameters:
      selection - selection from call hierarchy view, can be null
    • handleFindReferences

      public void handleFindReferences(ISelection selection)
      Find references for element from selection
      Parameters:
      selection - selection from call hierarchy view, can be null
    • selectionChanged

      public void selectionChanged(SelectionChangedEvent event)
      Specified by:
      selectionChanged in interface ISelectionChangedListener
    • getSelection

      public ISelection getSelection()
      Gets actual call hierarchy view selection
      Returns:
      actual call hierarchy view selection, can't be null
    • setCallMode

      public void setCallMode(int mode)
      Sets actual call hierarchy mode
      Parameters:
      mode - actual call hierarchy mode
    • computeOrientation

      public void computeOrientation()
      Computes orientation for LocationViewer
    • setOrientation

      public void setOrientation(boolean isHierarchyOnly)
      Sets actual orientation for LocationViewer
      Parameters:
      isHierarchyOnly - true if we shouldn't show LocationViewer, false otherwise
    • cancelJobs

      public void cancelJobs()
      Cancels building of call hierarchy
    • setCancelEnabled

      public void setCancelEnabled(boolean enabled)
      Parameters:
      enabled - true if action is enabled, false otherwise