public interface ITypeHierarchyViewPart extends IViewPart
This interface is not intended to be implemented by clients.
JavaUI.ID_TYPE_HIERARCHY
Modifier and Type | Field and Description |
---|---|
static int |
HIERARCHY_MODE_CLASSIC
Constant used for the 'classic' type hierarchy mode.
|
static int |
HIERARCHY_MODE_SUBTYPES
Constant used for the sub types hierarchy mode.
|
static int |
HIERARCHY_MODE_SUPERTYPES
Constant used for the super types hierarchy mode.
|
static int |
VIEW_LAYOUT_AUTOMATIC
Constant used for the automatic view layout.
|
static int |
VIEW_LAYOUT_HORIZONTAL
Constant used for the horizontal view layout.
|
static int |
VIEW_LAYOUT_SINGLE
Constant used for the single view layout (no members view)
|
static int |
VIEW_LAYOUT_VERTICAL
Constant used for the vertical view layout.
|
PROP_TITLE
Modifier and Type | Method and Description |
---|---|
int |
getHierarchyMode()
Returns the currently configured hierarchy mode.
|
IType |
getInput()
Deprecated.
use getInputElement instead
|
IJavaElement |
getInputElement()
Returns the input element of this type hierarchy view.
|
int |
getViewLayout()
Returns the currently configured view layout.
|
boolean |
isLinkingEnabled()
Returns whether this type hierarchy view's selection automatically tracks the active editor.
|
boolean |
isQualifiedTypeNamesEnabled()
If set, type names are shown with the parent container's name.
|
boolean |
isShowMembersInHierarchy()
If set, the lock mode is enabled.
|
void |
setHierarchyMode(int mode)
Sets the hierarchy mode.
|
void |
setInput(IType type)
Deprecated.
use setInputElement instead
|
void |
setInputElement(IJavaElement element)
Sets the input element of this type hierarchy view.
|
void |
setLinkingEnabled(boolean enabled)
Sets whether this type hierarchy view's selection automatically tracks the active editor.
|
void |
setViewLayout(int layout)
Sets the view layout.
|
void |
showMembersInHierarchy(boolean enabled)
Locks the the members view and shows the selected members in the hierarchy.
|
void |
showQualifiedTypeNames(boolean enabled)
Specifies if type names are shown with the parent container's name.
|
getViewSite, init, init, saveState
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
getAdapter
static final int VIEW_LAYOUT_VERTICAL
static final int VIEW_LAYOUT_HORIZONTAL
static final int VIEW_LAYOUT_SINGLE
static final int VIEW_LAYOUT_AUTOMATIC
static final int HIERARCHY_MODE_CLASSIC
static final int HIERARCHY_MODE_SUPERTYPES
static final int HIERARCHY_MODE_SUBTYPES
void setInput(IType type)
type
- the input element of this type hierarchy view, or null
to clear any input elementvoid setInputElement(IJavaElement element)
IMember
(types, methods, fields..), IPackageFragment
, IPackageFragmentRoot
and IJavaProject
.element
- the input element of this type hierarchy view, or null
to clear any inputIType getInput()
null
if no input element is setsetInput(IType)
IJavaElement getInputElement()
null
if no input element is setsetInputElement(IJavaElement)
void showMembersInHierarchy(boolean enabled)
enabled
- If set, the members view will be locked and the selected members are shown in the hierarchy.boolean isShowMembersInHierarchy()
void showQualifiedTypeNames(boolean enabled)
enabled
- if enabled, the hierarchy will also show the type container namesboolean isQualifiedTypeNamesEnabled()
boolean isLinkingEnabled()
true
if linking is enabled, false
if notvoid setLinkingEnabled(boolean enabled)
enabled
- true
to enable, false
to disablevoid setViewLayout(int layout)
VIEW_LAYOUT_VERTICAL
, VIEW_LAYOUT_HORIZONTAL
VIEW_LAYOUT_SINGLE
and VIEW_LAYOUT_AUTOMATIC
.layout
- The layout to setint getViewLayout()
VIEW_LAYOUT_VERTICAL
, VIEW_LAYOUT_HORIZONTAL
VIEW_LAYOUT_SINGLE
and VIEW_LAYOUT_AUTOMATIC
but clients should also be able to handle yet unknown
layout.void setHierarchyMode(int mode)
HIERARCHY_MODE_SUBTYPES
, HIERARCHY_MODE_SUPERTYPES
and HIERARCHY_MODE_CLASSIC
.mode
- The hierarchy mode to setint getHierarchyMode()
HIERARCHY_MODE_SUBTYPES
, HIERARCHY_MODE_SUPERTYPES
and HIERARCHY_MODE_CLASSIC
but clients should also be able to handle yet unknown modes.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.