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

java.lang.Object
  extended by org.eclipse.corona.container.project.ui.builder.CommitChangeListener
All Implemented Interfaces:
java.util.EventListener, org.eclipse.team.core.subscribers.ISubscriberChangeListener

public class CommitChangeListener
extends java.lang.Object
implements org.eclipse.team.core.subscribers.ISubscriberChangeListener

Listener of 'completed commit events'. Converts subscriber change event to collaboration sync event.


Field Summary
static java.lang.String CVS_PROVIDER_ID
           
 
Constructor Summary
CommitChangeListener(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.
 void subscriberResourceChanged(org.eclipse.team.core.subscribers.ISubscriberChangeEvent[] deltas)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_PROVIDER_ID

public static final java.lang.String CVS_PROVIDER_ID
See Also:
Constant Field Values
Constructor Detail

CommitChangeListener

public CommitChangeListener(ICollaborationEventAdmin eventAdmin)
Method Detail

subscriberResourceChanged

public void subscriberResourceChanged(org.eclipse.team.core.subscribers.ISubscriberChangeEvent[] deltas)
Specified by:
subscriberResourceChanged in interface org.eclipse.team.core.subscribers.ISubscriberChangeListener

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.

addCollaborationProject

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

Parameters:
projectName - Name of project to add.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.