com.ibm.ram.rich.ui.scm
Class TeamUIContributor

java.lang.Object
  extended by com.ibm.ram.rich.ui.scm.TeamUIContributor

public abstract class TeamUIContributor
extends java.lang.Object

Performs UI contributions to Rational Asset Manager for that Source Control Management system.

Author:
srimanth

Constructor Summary
TeamUIContributor()
           
 
Method Summary
 IStatus createTeamConnections(Reference[] references, IProgressMonitor monitor)
          When consuming or importing an asset, a Source Control Management (SCM) would need to create connections to repositories using some user input like user name and password.
 ImageDescriptor[] getArtifactDecorator(IResource[] resources)
          Returns an image which will be used to decorate the artifact to indicate that the artifact's resource comes from this Source Control Management (SCM) system.
 java.lang.String[] getBranchNames(Reference[] references, Asset asset, IProgressMonitor monitor)
          When consuming or importing an asset, a user might want to consume the contents from a different branch than the one from which the asset was submitted.
 IPropertySource getPropertySource(IResource resource)
          Returns the property source for the given artifact represented as a resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamUIContributor

public TeamUIContributor()
Method Detail

getArtifactDecorator

public ImageDescriptor[] getArtifactDecorator(IResource[] resources)
Returns an image which will be used to decorate the artifact to indicate that the artifact's resource comes from this Source Control Management (SCM) system.

Parameters:
resources -
Returns:

getPropertySource

public IPropertySource getPropertySource(IResource resource)
Returns the property source for the given artifact represented as a resource. This source is used to populate Source Control Management (SCM) properties for that artifact.

Parameters:
resource -
Returns:

getBranchNames

public java.lang.String[] getBranchNames(Reference[] references,
                                         Asset asset,
                                         IProgressMonitor monitor)
When consuming or importing an asset, a user might want to consume the contents from a different branch than the one from which the asset was submitted. This would allow the user to make new versions of the asset in different branches. The contributor would use the provided artifact references, and the asset to determine what branches are available from that asset.

Parameters:
references - References for the artifacts in the asset
asset - Asset which is being imported
monitor -
Returns:

createTeamConnections

public IStatus createTeamConnections(Reference[] references,
                                     IProgressMonitor monitor)
When consuming or importing an asset, a Source Control Management (SCM) would need to create connections to repositories using some user input like user name and password. This method is called to allow the contributor to perform such user interactions and setup the environment for asset import.

Parameters:
references - References for the artifacts in the asset
monitor -
Returns: