Class CallHierarchyViewOpener
- java.lang.Object
-
- org.eclipse.handly.ui.callhierarchy.CallHierarchyViewOpener
-
public final class CallHierarchyViewOpener extends java.lang.Object
A helper class for opening a call hierarchy view.
-
-
Constructor Summary
Constructors Constructor Description CallHierarchyViewOpener(java.lang.String viewId, CallHierarchyViewManager viewManager)
Constructs an opener for a call hierarchy view with the given id and the given view manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.ui.IViewPart
openView(org.eclipse.ui.IWorkbenchPage page, java.lang.Object[] inputElements)
Shows a call hierarchy view in the given workbench page, gives it focus, and sets its input to the given elements.
-
-
-
Constructor Detail
-
CallHierarchyViewOpener
public CallHierarchyViewOpener(java.lang.String viewId, CallHierarchyViewManager viewManager)
Constructs an opener for a call hierarchy view with the given id and the given view manager.- Parameters:
viewId
- notnull
viewManager
- notnull
-
-
Method Detail
-
openView
public org.eclipse.ui.IViewPart openView(org.eclipse.ui.IWorkbenchPage page, java.lang.Object[] inputElements) throws org.eclipse.ui.PartInitException
Shows a call hierarchy view in the given workbench page, gives it focus, and sets its input to the given elements. If there is no 'unpinned' call hierarchy view in the given page, a new instance of the view is created; otherwise, the most recently activated 'unpinned' view is reused.Note that in some error cases this method may return a view that is not an instance of
CallHierarchyViewPart
(e.g., anErrorViewPart
may be returned).- Parameters:
page
- notnull
inputElements
- notnull
, must not contain nulls; may be empty- Returns:
- the opened view (never
null
) - Throws:
org.eclipse.ui.PartInitException
- if the view could not be initializedjava.lang.IllegalArgumentException
- if the given elements are not valid input elements for the view
-
-