Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.history
Class HistoryElement

java.lang.Object
  extended by oracle.ide.model.DefaultDisplayable
      extended by oracle.ide.model.DefaultElement
          extended by 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

Constructor Summary
HistoryElement(HistoryEntry entry)
          Construct a HistoryElement wrapping the specified HistoryEntry.
 
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 oracle.ide.model.DefaultElement
getAttributes, getChildren, getData, mayHaveChildren
 
Methods inherited from class oracle.ide.model.DefaultDisplayable
getLongLabel, getToolTipText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.model.Displayable
getLongLabel, getToolTipText, toString
 

Constructor Detail

HistoryElement

public HistoryElement(HistoryEntry entry)
Construct a HistoryElement wrapping the specified HistoryEntry.

Parameters:
entry - the entry to wrap.
Method Detail

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()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.