|
[Subclipse-dev] PATCH: new extension point for issue tracking integration: msg#00016version-control.subversion.subclipse.devel
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
To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxxxx For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [Subclipse-dev] Download Section is crap: 00016, Harry Hirsch |
|---|---|
| Next by Date: | Re: [Subclipse-dev] Download Section is crap: 00016, Jesper Steen Møller |
| Previous by Thread: | [Subclipse-dev] Download Section is crapi: 00016, Harry Hirsch |
| Next by Thread: | Re: [Subclipse-dev] PATCH: new extension point for issue tracking integration: 00016, Mark Phippard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |