org.jupe.editors.classdiagram
Class JupeResourceDeltaVisitor

java.lang.Object
  extended by org.jupe.editors.classdiagram.JupeResourceDeltaVisitor
All Implemented Interfaces:
org.eclipse.core.resources.IResourceDeltaVisitor

public class JupeResourceDeltaVisitor
extends java.lang.Object
implements org.eclipse.core.resources.IResourceDeltaVisitor

Visitor for resource deltas.

Author:
Roman

Constructor Summary
JupeResourceDeltaVisitor(org.eclipse.core.resources.IFile checkFile)
          Constructor
 
Method Summary
 org.eclipse.core.runtime.IPath getReplacedPath()
          Method returns path of replaced resource or null otherwise.
 boolean hasFileAdded()
          Method returns true if file to check has been added.
 boolean hasFileChanged()
          Method returns true if file to check has been changed.
 boolean hasFileRemoved()
          Method returns true if file to check has been removed.
 boolean hasFileReplaced()
          Method returns true if file to check has been replaced.
 boolean visit(org.eclipse.core.resources.IResourceDelta delta)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JupeResourceDeltaVisitor

public JupeResourceDeltaVisitor(org.eclipse.core.resources.IFile checkFile)
Constructor

Parameters:
checkFile - file to check while visiting resource deltas
Method Detail

getReplacedPath

public org.eclipse.core.runtime.IPath getReplacedPath()
Method returns path of replaced resource or null otherwise.

Returns:
path of replaced resource

hasFileAdded

public boolean hasFileAdded()
Method returns true if file to check has been added.

Returns:
true if file has been added, false otherwise

hasFileChanged

public boolean hasFileChanged()
Method returns true if file to check has been changed.

Returns:
true if file has been changed, false otherwise

hasFileRemoved

public boolean hasFileRemoved()
Method returns true if file to check has been removed.

Returns:
true if file has been removed, false otherwise

hasFileReplaced

public boolean hasFileReplaced()
Method returns true if file to check has been replaced.

Returns:
true if file has been replaced, false otherwise

visit

public boolean visit(org.eclipse.core.resources.IResourceDelta delta)

Specified by:
visit in interface org.eclipse.core.resources.IResourceDeltaVisitor