Skip navigation links
oracle.jdeveloper.history
Class HistoryElement
java.lang.Object
oracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.jdeveloper.history.HistoryElement
- All Implemented Interfaces:
- Displayable, Element
-
public final class HistoryElement
- extends DefaultElement
Provides a bridge between HistoryEntry and the IDE's Element interface. When history entries are selected in the history viewer, the IDE's selection is an array of HistoryElements.
- Since:
- 10.0.3
Method Summary |
HistoryEntry |
getEntry()
Get the wrapped history entry. |
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon. |
java.lang.String |
getShortLabel()
Get the short label of this element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HistoryElement
public HistoryElement(HistoryEntry entry)
- Construct a HistoryElement wrapping the specified HistoryEntry.
- Parameters:
entry
- the entry to wrap.
getEntry
public HistoryEntry getEntry()
- Get the wrapped history entry.
-
- Returns:
- the wrapped history entry.
getShortLabel
public java.lang.String getShortLabel()
- Get the short label of this element. If the history entry defines the SharedProperties.REVISION property, the
-
- Specified by:
getShortLabel
in interface Displayable
- Overrides:
getShortLabel
in class DefaultDisplayable
-
- Returns:
- See Also:
Displayable.getShortLabel()
getIcon
public javax.swing.Icon getIcon()
- Description copied from class:
DefaultDisplayable
- This implementation returns a plain document icon.
-
- Specified by:
getIcon
in interface Displayable
- Overrides:
getIcon
in class DefaultDisplayable
-
- Returns:
- the
Icon
to be displayed for the Displayable
.
- See Also:
Displayable.getIcon()
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.