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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final Object
static final String
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancels building of call hierarchyvoid
Computes orientation forLocationViewer
void
createPartControl
(org.eclipse.swt.widgets.Composite parent) int
Gets current Call hierarchy call modeGets currentICallHierarchyResult
Gets all elements if Call hierarchy historyGets current input elementsGets actual call hierarchy view selectionGets call hieerarchy tree viewervoid
Shows call hierarchy from the element in historyvoid
handleFindReferences
(ISelection selection) Find references for element from selectionvoid
handleFocusOn
(ISelection selection) Focuses on selection element from call hierarchy viewvoid
handleOpen
(ISelection selection) Open text editor by selection in call hierarchy viewboolean
isPinned()
Gets actual state of action pinvoid
queryAdded
(ICallHierarchyQuery query) Called when an query has been added to the system.void
queryFinished
(ICallHierarchyQuery query) Called after anISearchQuery
has finished.void
queryRemoved
(ICallHierarchyQuery query) Called when a query has been removed.void
queryStarting
(ICallHierarchyQuery query) Called before anISearchQuery
is starting.void
refresh()
Refreshes viewvoid
saveState
(org.eclipse.ui.IMemento memento) void
void
setCallMode
(int mode) Sets actual call hierarchy modevoid
setCancelEnabled
(boolean enabled) Changes enabled ofCallHierarchyViewPageActions.CancelSearchAction
void
setFocus()
void
setHistoryEntries
(ICallHierarchyResult[] entries) Sets the history entriesvoid
setInputElements
(ICallHierarchyResult member) Sets new input for showing call hierarchyvoid
setOrientation
(boolean isHierarchyOnly) Sets actual orientation forLocationViewer
void
setPinned
(boolean pinned) Change state of properties 'pin' of viewMethods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
ID_CALL_HIERARCHY
- See Also:
-
DEFERRED_CONTENT_FAMILY
-
CALL_MODE_CALLERS
public static final int CALL_MODE_CALLERS- See Also:
-
CALL_MODE_CALLEES
public static final int CALL_MODE_CALLEES- See Also:
-
-
Constructor Details
-
CallHierarchyViewPart
public CallHierarchyViewPart()Constructor
-
-
Method Details
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in classorg.eclipse.ui.part.WorkbenchPart
-
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
Sets the history entries- Parameters:
entries
- the new history entries, can't benull
-
isPinned
public boolean isPinned()Gets actual state of action pin- Returns:
true
if is pinned,false
otherwise
-
getCurrentCallHierarchyResult
Gets currentICallHierarchyResult
- Returns:
- current
ICallHierarchyResult
, can't benull
-
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
Sets new input for showing call hierarchy- Parameters:
member
- newICallHierarchyResult
, can benull
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 interfaceorg.eclipse.ui.IPersistable
- Specified by:
saveState
in interfaceorg.eclipse.ui.IViewPart
- Overrides:
saveState
in classorg.eclipse.ui.part.ViewPart
-
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 interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in classorg.eclipse.ui.part.WorkbenchPart
-
queryAdded
Description copied from interface:ICallHierarchyQueryListener
Called when an query has been added to the system.- Specified by:
queryAdded
in interfaceICallHierarchyQueryListener
- Parameters:
query
- the query that has been added, can't benull
-
queryRemoved
Description copied from interface:ICallHierarchyQueryListener
Called when a query has been removed.- Specified by:
queryRemoved
in interfaceICallHierarchyQueryListener
- Parameters:
query
- the query that has been removed, can't benull
-
queryStarting
Description copied from interface:ICallHierarchyQueryListener
Called before anISearchQuery
is starting.- Specified by:
queryStarting
in interfaceICallHierarchyQueryListener
- Parameters:
query
- the query about to start, can't benull
-
queryFinished
Description copied from interface:ICallHierarchyQueryListener
Called after anISearchQuery
has finished.- Specified by:
queryFinished
in interfaceICallHierarchyQueryListener
- Parameters:
query
- the query that has finished, can't benull
-
getHistoryEntries
Gets all elements if Call hierarchy history- Returns:
- all elements if Call hierarchy history, can't be
null
-
gotoHistoryEntry
Shows call hierarchy from the element in history- Parameters:
entry
- history call hierarchy element, can't benull
-
handleOpen
Open text editor by selection in call hierarchy view- Parameters:
selection
- selection from call hierarchy view, can benull
-
handleFocusOn
Focuses on selection element from call hierarchy view- Parameters:
selection
- selection from call hierarchy view, can benull
-
handleFindReferences
Find references for element from selection- Parameters:
selection
- selection from call hierarchy view, can benull
-
selectionChanged
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
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 forLocationViewer
-
setOrientation
public void setOrientation(boolean isHierarchyOnly) Sets actual orientation forLocationViewer
- Parameters:
isHierarchyOnly
-true
if we shouldn't showLocationViewer
,false
otherwise
-
cancelJobs
public void cancelJobs()Cancels building of call hierarchy -
setCancelEnabled
public void setCancelEnabled(boolean enabled) Changes enabled ofCallHierarchyViewPageActions.CancelSearchAction
- Parameters:
enabled
-true
if action is enabled,false
otherwise
-