[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] PATCH: new extension point for issue tracking integration

From: <FSauer_at_dsthealthsolutions.com>
Date: 2006-11-09 17:01:52 CET

Hi all, I've modified the subclipse ui because we had a requirement to integrate with the Jira issue tracker, so that the commit dialog in subclipse actually queries for and shows the Jira issues. Now, in order to not pollute Subclipse with Jira dependencies, I did NOT add all this code to the subclipse ui plugin, but instead created a new extension point: org.tigris.subversion.subclipse.ui.bugtrackingui, which third party plugins can use to contribute a UI to the commit dialog, like this: <extension point="org.tigris.subversion.subclipse.ui.bugtrackingui"> <bugtraqui class="com.dst.hps.to.jirasubclipse.ui.JiraIsuesCommitArea" type="jira"/> </extension> The class is expected to implement the IBugTrackingUIProvider interface: public interface IBugTrackingUIProvider { /** * Used by the bugtrackingprovider extension point to allow 3rd party * bugtracking ui in the commit dialog * @param parent SWT Composite to plug in to * @param properties SVN properties or null if not set */ void addBugTrackingArea(Composite parent, ProjectProperties properties); /** * @return null if a valid issue is present, or error message when something is wrong */ String getMessage(); /** * @return the selected/entered issue */ String getIssue(); } In order to allow for a different ui contribution for different issue trackers I've added a new bugtraq:type property to the list of understood bugtraq: properties. The value of bugtraq:type is used to locate the appropriate UI extension. ProjectProperties was modified to add support for this new property and the CommitDialog was modified to use a contribution if there is one, or do what it used to do if there is not. Attachments: patch.txt ----------------------------------------- This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information which is privileged, confidential and prohibited from disclosure or unauthorized use under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified that any use, dissemination, or copying of this e-mail or the information contained in this e-mail is strictly prohibited by the sender. If you have received this transmission in error, please return the material received to the sender and delete all copies from your system.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org

Received on Thu Nov 9 17:05:32 2006

This is an archived mail posted to the Subclipse Dev mailing list.