Class 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
    • Constructor Detail

      • CallHierarchyViewPart

        public CallHierarchyViewPart()
    • Method Detail

      • 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
        call hieerarchy tree viewer, can't be null
      • getCallMode

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

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

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

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

        public void setInputElements​(ICallHierarchyResult member)
        Sets new input for showing call hierarchy
        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
        saveState in class org.eclipse.ui.part.ViewPart
      • getInputElements

        public ICallHierarchyResult getInputElements()
        Gets current input elements
        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
      • getHistoryEntries

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

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

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

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

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

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

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

        public void computeOrientation()
        Computes orientation for LocationViewer
      • setOrientation

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

        public void cancelJobs()
        Cancels building of call hierarchy