protected abstract static class CallHierarchyViewPart.HistoryEntry
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
HistoryEntry(java.lang.Object[] inputElements)
Constructs a history entry for the given input elements.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
protected abstract java.lang.String |
getElementLabel(java.lang.Object element)
Returns a user-readable text label for the given element.
|
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor()
Returns an image descriptor for this history entry.
|
java.lang.Object[] |
getInputElements()
Returns the input elements for this history entry.
|
java.lang.String |
getLabel()
Returns a user-readable text label for this history entry.
|
int |
hashCode() |
protected HistoryEntry(java.lang.Object[] inputElements)
inputElements
- never null
; never emptypublic final java.lang.Object[] getInputElements()
null
; never empty).
Clients must not modify the returned array.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getLabel()
Default implementation composes a label based on labels for
input elements. It invokes getElementLabel(Object)
to obtain a label for an input element.
null
)protected abstract java.lang.String getElementLabel(java.lang.Object element)
element
- the given elementnull
)public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
Default implementation always returns null
.
null
)Copyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0