oracle.jdeveloper.compare
Class TextNodeResource
java.lang.Object
oracle.scm.client.resource.fileSystemResource.FileSystemResource
oracle.jdeveloper.compare.TextNodeResource
- All Implemented Interfaces:
- oracle.scm.client.resource.ComparableElement, oracle.scm.client.resource.Resource
- public class TextNodeResource
- extends oracle.scm.client.resource.fileSystemResource.FileSystemResource
Binding mechanism used to display a text node in the compare viewer. This
resource represents a TextNode in JDeveloper. If the TextNode is dirty,
the contents of the resource are the contents of the in-memory text buffer
for that text node. If the text node is not dirty, the contents are retrieved
from a stream on the URL of this node.
Methods inherited from class oracle.scm.client.resource.fileSystemResource.FileSystemResource |
getNotes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextNodeResource
public TextNodeResource(TextNode node)
isChanged
public boolean isChanged()
- Returns true if the TextNode for this resource has changed since the
last time isChanged() was called. The first time you call isChanged(), it
will return true if the node has changed since this resource was
constructed. A change is indicated by one of these
conditions:
o If the node is dirty, and it wasn't previously dirty.
o If the node is dirty, the change id of the text buffer for this node
is different from the last time isChanged() was called.
o If the node is not dirty, and it used to be.
o If the node is not dirty, the timestamp of the file on disk has changed
since the last time isChanged() was called.
o If the node is not dirty, and the timestamp has not changed, the
read only state of the node has changed since the last time isChanged()
was called.
- Returns:
getName
public java.lang.String getName()
getFullPath
public java.lang.String getFullPath()
getResourceType
public oracle.scm.client.resource.ResourceType getResourceType()
isValid
public boolean isValid()
isMergable
public boolean isMergable()
throws oracle.scm.client.resource.exceptions.ResourceException
- Throws:
oracle.scm.client.resource.exceptions.ResourceException
getContents
public oracle.scm.client.resource.ComparableElement[] getContents(boolean synch)
throws oracle.scm.client.resource.exceptions.ResourceException
- Throws:
oracle.scm.client.resource.exceptions.ResourceException
getContents
public oracle.scm.client.resource.ComparableElement[] getContents(oracle.scm.client.resource.Resource restriction,
boolean sync)
throws oracle.scm.client.resource.exceptions.ResourceException
- Throws:
oracle.scm.client.resource.exceptions.ResourceException
setContents
public void setContents(oracle.scm.client.resource.ComparableElement[] p0,
boolean p1)
throws oracle.scm.client.resource.exceptions.ResourceException
- Throws:
oracle.scm.client.resource.exceptions.ResourceException
setContents
public void setContents(oracle.scm.client.resource.Resource p0,
boolean p1)
throws oracle.scm.client.resource.exceptions.ResourceException
- Throws:
oracle.scm.client.resource.exceptions.ResourceException
hasSameContents
public boolean hasSameContents(oracle.scm.client.resource.Resource p0)
getCompareString
public java.lang.String getCompareString(boolean p0,
boolean p1)
getCompareDisplayString
public java.lang.String getCompareDisplayString(boolean p0)
getCompareDisplayIcon
public javax.swing.Icon getCompareDisplayIcon()
Copyright © 1997, 2004, Oracle. All rights reserved.