org.eclipse.corona.container.project.ui.builder
Class ResourceFileHandler

java.lang.Object
  extended by org.eclipse.corona.container.project.ui.builder.CollaborationResourceHandler
      extended by org.eclipse.corona.container.project.ui.builder.ResourceFileHandler

public class ResourceFileHandler
extends CollaborationResourceHandler

Abstract base class to process file changes. The method processResourceChange is intended to be implemented by sub-class to actually process the file change.


Field Summary
protected  org.eclipse.core.resources.IFile m_ResourceFile
          The File resource that was change
 
Fields inherited from class org.eclipse.corona.container.project.ui.builder.CollaborationResourceHandler
delta, deltaFlags, deltaKind, deltaResource, m_bCollaborationProject, projectEvent
 
Constructor Summary
ResourceFileHandler(ICollaborationEventAdmin eventAdmin)
          Class constructor performs basic intializatio of the class instance.
 
Method Summary
 boolean processResourceChange()
          This method MUST be implemented by sub classes to process the folderresource change.
 boolean processResourceChange(org.eclipse.core.resources.IResourceDelta delta)
          Process the file resource change.
protected  boolean skipEvent()
          Test if ResourceChangeEvent should be skipped
 
Methods inherited from class org.eclipse.corona.container.project.ui.builder.CollaborationResourceHandler
buildEvent, getProjectGuid, initProjectEvent, postEvent, processResourceCommit, processResourceCommit, resourceIPathToURI, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ResourceFile

protected org.eclipse.core.resources.IFile m_ResourceFile
The File resource that was change

Constructor Detail

ResourceFileHandler

public ResourceFileHandler(ICollaborationEventAdmin eventAdmin)
Class constructor performs basic intializatio of the class instance.

Method Detail

processResourceChange

public boolean processResourceChange(org.eclipse.core.resources.IResourceDelta delta)
Process the file resource change.

Overrides:
processResourceChange in class CollaborationResourceHandler
Parameters:
delta - An IResourceDelta instance that describes the changes made to the file resource.

skipEvent

protected boolean skipEvent()
Test if ResourceChangeEvent should be skipped

Returns:

processResourceChange

public boolean processResourceChange()
Description copied from class: CollaborationResourceHandler
This method MUST be implemented by sub classes to process the folderresource change. The change can be determined by a combination of the m_ResourceDeltaKind and m_ResourceDeltaFlags fields. The method is called while the resource tree is locked, therefore changes to the resource may not be possible.

Specified by:
processResourceChange in class CollaborationResourceHandler

Copyright 2006 IBM Corporation and others.
All Rights Reserved.