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

java.lang.Object
  extended by org.eclipse.corona.container.project.ui.builder.CommitConsoleListener
All Implemented Interfaces:
org.eclipse.team.internal.ccvs.core.client.listeners.IConsoleListener

public class CommitConsoleListener
extends java.lang.Object
implements org.eclipse.team.internal.ccvs.core.client.listeners.IConsoleListener

Listener of 'completed commit events'. Generates collaboration sync event.


Constructor Summary
CommitConsoleListener(ICollaborationEventAdmin eventAdmin)
           
 
Method Summary
 void addCollaborationProject(java.lang.String projectName)
          Adds the specified project as a Corona Collaboration project.
 void commandCompleted(org.eclipse.team.internal.ccvs.core.client.Session session, org.eclipse.core.runtime.IStatus status, java.lang.Exception exception)
           
 void commandInvoked(org.eclipse.team.internal.ccvs.core.client.Session session, java.lang.String line)
           
 void errorLineReceived(org.eclipse.team.internal.ccvs.core.client.Session session, java.lang.String line, org.eclipse.core.runtime.IStatus status)
           
 boolean isCollaborationProject(org.eclipse.core.resources.IResource resource)
          Check if specified resource is contained in a project that has the Corona Collaboration Nature.
 void messageLineReceived(org.eclipse.team.internal.ccvs.core.client.Session session, java.lang.String line, org.eclipse.core.runtime.IStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitConsoleListener

public CommitConsoleListener(ICollaborationEventAdmin eventAdmin)
Method Detail

commandCompleted

public void commandCompleted(org.eclipse.team.internal.ccvs.core.client.Session session,
                             org.eclipse.core.runtime.IStatus status,
                             java.lang.Exception exception)
Specified by:
commandCompleted in interface org.eclipse.team.internal.ccvs.core.client.listeners.IConsoleListener

commandInvoked

public void commandInvoked(org.eclipse.team.internal.ccvs.core.client.Session session,
                           java.lang.String line)
Specified by:
commandInvoked in interface org.eclipse.team.internal.ccvs.core.client.listeners.IConsoleListener

errorLineReceived

public void errorLineReceived(org.eclipse.team.internal.ccvs.core.client.Session session,
                              java.lang.String line,
                              org.eclipse.core.runtime.IStatus status)
Specified by:
errorLineReceived in interface org.eclipse.team.internal.ccvs.core.client.listeners.IConsoleListener

messageLineReceived

public void messageLineReceived(org.eclipse.team.internal.ccvs.core.client.Session session,
                                java.lang.String line,
                                org.eclipse.core.runtime.IStatus status)
Specified by:
messageLineReceived in interface org.eclipse.team.internal.ccvs.core.client.listeners.IConsoleListener

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.