logo       

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

version-control.subversion.subclipse.devel

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


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.

Attachment: patch.txt
Description: Text document

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxxxx
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise