Rich Team Integration
Integrating your repository's support with the platform starts with
good solid design. The goal is to integrate the workflow that your
repository users know with the concepts defined in the workbench. Because
there are many ways to extend workbench UI and functionality, you have a lot of
flexibility in how you achieve integration. So where to start?
Building a team provider is not just a matter of learning Team
API. (Subsequent sections will focus on the specific support
introduced by the team plug-in.) It's a matter of understanding workbench integration. So let's start
with the big picture. We'll be using the CVS client as a case
study for integrating a team provider with the platform. Let's look at
some of the function the CVS provider supplies and what workbench and
team facilities you can use to achieve similar levels of integration.
The CVS client integrates seamlessly with the existing workbench
resource perspective. It allows users to configure a project for
CVS, adds functionality to a resource's menu, decorates resources with
team-specific information, provides customized views that show
team-specific information, adds team-oriented tasks to the task
list... The list goes on and on. How can your provider
achieve similar integration? Here are some basic steps to start
with and links for information (both team-specific and
workbench-oriented) on these topics.
Enhancing resource views
|Add provider-specific properties to the
properties page for a resource.
|Implement specialized decorators to show
|Reduce clutter by filtering out any resources
that are used in implementing team support.
Handling user editing and changes to resources
|Intervene in the saving of resources so you can
check permissions before a user changes a file.
|Intervene before a user edits a file to see if
|Track changes to resources in the workspace so
you can allow associated changes in the repository.
|Ensure that the proper resource locks are obtained for
resource operations that invoke the move/delete hook or
|Enable the use of linked resources.
Streamlining repository-related tasks
|Provide an easy way to export a description of
to export your projects without exporting the content so that users can
rebuild projects from the repository.
|Reduce clutter in the repository by ignoring
files that can be regenerated.
- Honor the
extension when handling files and use ignore for your plug-in's derived
Enhancing platform integration
|Add provider-specific preferences to the
|Implement custom views to show detailed
information about repositories or their resources.
- Use the
extension to contribute a view.
- See the CVS provider's repository view for an example.
|Add your views or actions to existing workbench
perspectives if appropriate.
- Use the
extension to add your plug-in's shortcuts or views to existing
|Implement a repository-specific perspective to
streamline repository administration or browsing.
- Use the
extension to define your own perspective, views, short cuts, and page