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

java.lang.Object
  extended by org.eclipse.corona.container.project.ui.builder.ResourceChangeListener
All Implemented Interfaces:
java.util.EventListener, org.eclipse.core.resources.IResourceChangeListener

public class ResourceChangeListener
extends java.lang.Object
implements org.eclipse.core.resources.IResourceChangeListener


Constructor Summary
ResourceChangeListener(ICollaborationEventAdmin eventAdmin)
           
 
Method Summary
 void addCollaborationProject(java.lang.String projectName)
          Adds the specified project as a Corona Collaboration project.
 boolean isCollaborationProject(org.eclipse.core.resources.IResource resource)
          Check if specified resource is contained in a project that has the Corona Collaboration Nature.
 boolean processResourceDelta(org.eclipse.core.resources.IResourceDelta delta)
          Process the resource change.
 void removeCollaborationProject(java.lang.String projectName)
          Removes the specified project as a Corona Collaboration project.
 void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
          Process the specified change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceChangeListener

public ResourceChangeListener(ICollaborationEventAdmin eventAdmin)
Method Detail

resourceChanged

public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Process the specified change. This method is notified by the platfor that some resource changes are happening, or have already happened. The supplied event gives details. This event object (and the resource delta within it) is valid only for the duration of the invocation of this method.

Specified by:
resourceChanged in interface org.eclipse.core.resources.IResourceChangeListener
Parameters:
event - An instance of IResourceChangeEvent that describe the chnage to the resource

addCollaborationProject

public void addCollaborationProject(java.lang.String projectName)
Adds the specified project as a Corona Collaboration project.

Parameters:
projectName - Name of project to add.

removeCollaborationProject

public void removeCollaborationProject(java.lang.String projectName)
Removes the specified project as a Corona Collaboration project.

Parameters:
projectName - Name of project to add.

processResourceDelta

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

Parameters:
delta - An instance of IResourceDelta that describe the changes made to the resource.

isCollaborationProject

public boolean isCollaborationProject(org.eclipse.core.resources.IResource resource)
Check if specified resource is contained in a project that has the Corona Collaboration Nature.

Parameters:
resource - An instance of IResource for the specified resource.
Returns:
true is returned if the specified resource is contained ia a project that has the Corona Collaboration Nature. false is returned otherwise.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.