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

E13403-05

oracle.jdeveloper.vcs.changelist
Class ChangeListItem

java.lang.Object
  extended by oracle.ide.model.DefaultDisplayable
      extended by oracle.ide.model.DefaultElement
          extended by oracle.jdeveloper.vcs.changelist.ChangeListItem
All Implemented Interfaces:
Displayable, Element, Locatable

public class ChangeListItem
extends DefaultElement
implements Locatable

ChangeListItems are proxy elements that represent files in the change list. The indirection is necessary because we can't rely on the node factory containing all the files that may be shown in the change list.


Constructor Summary
ChangeListItem(java.net.URL url, java.util.Collection<Project> projects, IconOverlay overlay)
           
ChangeListItem(java.net.URL url, IconOverlay overlay)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Node findNode()
          Get the node for this element from the node factory.
 Node findOrCreateNode()
          Get or create the node for this element from the node factory.
 javax.swing.Icon getIcon()
          This implementation returns a plain document icon.
 IconOverlay getOverlay()
           
 Project getProject()
           
 java.util.Collection<Project> getProjects()
           
 java.lang.String getShortLabel()
          This implementation returns a place-holder String.
 java.net.URL getURL()
          Returns the URL that identifies this Locatable.
 int hashCode()
           
 void setOverlay(IconOverlay overlay)
           
 void setURL(java.net.URL url)
          Sets the URL associated with this Locatable.
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.model.Displayable
getLongLabel, getToolTipText, toString
 

Constructor Detail

ChangeListItem

public ChangeListItem(java.net.URL url,
                      IconOverlay overlay)

ChangeListItem

public ChangeListItem(java.net.URL url,
                      java.util.Collection<Project> projects,
                      IconOverlay overlay)
Method Detail

findNode

public Node findNode()
Get the node for this element from the node factory. This may return null.

Returns:
the node instance.

findOrCreateNode

public Node findOrCreateNode()
                      throws java.lang.IllegalAccessException,
                             java.lang.InstantiationException
Get or create the node for this element from the node factory.

Returns:
the node instance.
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

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

getShortLabel

public java.lang.String getShortLabel()
Description copied from class: DefaultDisplayable
This implementation returns a place-holder String.

Specified by:
getShortLabel in interface Displayable
Overrides:
getShortLabel in class DefaultDisplayable
Returns:
a short descriptive label of the Displayable that can be shown to the user.
See Also:
Displayable.getShortLabel()

getURL

public java.net.URL getURL()
Description copied from interface: Locatable
Returns the URL that identifies this Locatable. Parts of the IDE will use the value of this URL as a hash key for caching UI components for this Locatable. Therefore, URL uniqueness is important.

Specified by:
getURL in interface Locatable
Returns:
The URL identifying this Locatable.

setURL

public void setURL(java.net.URL url)
Description copied from interface: Locatable
Sets the URL associated with this Locatable. It is important that the URL only be changed when the Locatable has just been created or when all caches keyed on the previous URL can also be updated.

Specified by:
setURL in interface Locatable
Parameters:
url - The URL to set.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getOverlay

public IconOverlay getOverlay()

setOverlay

public void setOverlay(IconOverlay overlay)

getProject

public final Project getProject()

getProjects

public final java.util.Collection<Project> getProjects()

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.