org.eclipse.mylar.team
Class AbstractTeamRepositoryProvider

java.lang.Object
  extended by org.eclipse.mylar.team.AbstractTeamRepositoryProvider
Direct Known Subclasses:
CvsRepositoryProvider, SubclipseTeamRepositoryProvider

public abstract class AbstractTeamRepositoryProvider
extends java.lang.Object

Integrates an Eclipse Team repository with Mylar.

Author:
Gunnar Wagenknecht, Mik Kersten

Constructor Summary
AbstractTeamRepositoryProvider()
           
 
Method Summary
 void commit(org.eclipse.core.resources.IResource[] resources)
          Asks the team provider to commit a set of resources that may be managed by the team provider.
 org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager getActiveChangeSetManager()
          Return the change set collector that manages the active change set for the participant associated with this capability.
 boolean hasOutgoingChanges(org.eclipse.core.resources.IResource[] resources)
          Determines if the team provider manages at least one of the resources and at least one of the resources has an 'outgoing' state (locally changed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTeamRepositoryProvider

public AbstractTeamRepositoryProvider()
Method Detail

getActiveChangeSetManager

public org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager getActiveChangeSetManager()
Return the change set collector that manages the active change set for the participant associated with this capability. A null is returned if active change sets are not supported. The default is to return null. This method must be overridden by subclasses that support active change sets.

Returns:
the change set collector that manages the active change set for the participant associated with this capability or null if active change sets are not supported.

hasOutgoingChanges

public boolean hasOutgoingChanges(org.eclipse.core.resources.IResource[] resources)
Determines if the team provider manages at least one of the resources and at least one of the resources has an 'outgoing' state (locally changed). If this method returns true, the team provider may be later asked to commit(org.eclipse.core.resources.IResource[]) them. The set of resources may contain resources from projects that are not managed by your provider or not managed at all.

Parameters:
resources -
Returns:
true if the team provider manages at least one of the resources or false otherwise.

commit

public void commit(org.eclipse.core.resources.IResource[] resources)
Asks the team provider to commit a set of resources that may be managed by the team provider. It is up to the team provider to only operate on resources that are being managed by it. The set of resources may contain resources from projects that are not managed by your provider or not managed at all.

Parameters:
resources - Set of resources that need to be committed