|
|
|
|
|
Re: How to contribute new Generic Web templates [message #57601 is a reply to message #57577] |
Tue, 09 September 2008 22:51 |
Eugene Kuleshov Messages: 504 Registered: July 2009 |
Senior Member |
|
|
BTW, if you only need to share your settings, you can simply export
task query. It is exported together with the task repository
configuration. So, other users can import it and edit settings if necessary.
regards,
Eugene
Michael Giroux wrote:
> Building the plugin was quite simple. Thanks.
>
>
> Michael
>
> "Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
> news:ga6bn0$2gp$5@build.eclipse.org...
>
>> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>>
>> <extension
>> point="org.eclipse.mylyn.tasks.core.templates">
>> <repository
>> repositoryKind="web"
>> label="Subclipse (IssueZilla)"
>> urlRepository="http://subclipse.tigris.org/issues"
>> urlTask="${serverUrl}/show_bug.cgi?id="
>> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>>
>> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
>> <attribute name="queryPattern"
>> value="<a href="show_bug.cgi\?id\=(
>> +?)">.+?<span
>> class="summary">(.+?)</span& amp;gt; "/>
>> </repository>
>> ...
>> </extension>
>>
>> If your plug-in specifies a template that has the repositoryKind set
>> to "web" it should show up in the repository properties dialog.
>>
>> Steffen
>>
>>
>> Michael Giroux wrote:
>>
>>
>>> I'll be happy to read the manual, but could not find anything related. I
>>> may have overlooked something. Could someone point me to appropriate
>>> docs?
>>>
>>> Michael
>>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>>> news:g9422v$9t5$1@build.eclipse.org...
>>>
>>>> The generic web connector provides templates for a few types of
>>>> repositories. After spending a few days refining the urls and query
>>>> patterns for my repository, I would like to share this with the rest of
>>>> the team with something more convenient that copy/paste.
>>>>
>>>> How can I add a new repository template to the generic web connector?
>>>>
>>>> I've been looking for an extension point that I could contribute to, but
>>>> no luck.
>>>>
>>>> I've searched the jars looking for an xml config or something, but again
>>>> no luck.
>>>>
>>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>>> extension point I need to use.
>>>>
>>>> Thanks
>>>> Michael
>>>>
>>>>
>
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to contribute new Generic Web templates [message #593165 is a reply to message #57577] |
Tue, 09 September 2008 22:51 |
Eugene Kuleshov Messages: 504 Registered: July 2009 |
Senior Member |
|
|
BTW, if you only need to share your settings, you can simply export
task query. It is exported together with the task repository
configuration. So, other users can import it and edit settings if necessary.
regards,
Eugene
Michael Giroux wrote:
> Building the plugin was quite simple. Thanks.
>
>
> Michael
>
> "Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
> news:ga6bn0$2gp$5@build.eclipse.org...
>
>> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>>
>> <extension
>> point="org.eclipse.mylyn.tasks.core.templates">
>> <repository
>> repositoryKind="web"
>> label="Subclipse (IssueZilla)"
>> urlRepository="http://subclipse.tigris.org/issues"
>> urlTask="${serverUrl}/show_bug.cgi?id="
>> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>>
>> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
>> <attribute name="queryPattern"
>> value="<a href="show_bug.cgi\?id\=(
>> +?)">.+?<span
>> class="summary">(.+?)</span& amp;gt; "/>
>> </repository>
>> ...
>> </extension>
>>
>> If your plug-in specifies a template that has the repositoryKind set
>> to "web" it should show up in the repository properties dialog.
>>
>> Steffen
>>
>>
>> Michael Giroux wrote:
>>
>>
>>> I'll be happy to read the manual, but could not find anything related. I
>>> may have overlooked something. Could someone point me to appropriate
>>> docs?
>>>
>>> Michael
>>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>>> news:g9422v$9t5$1@build.eclipse.org...
>>>
>>>> The generic web connector provides templates for a few types of
>>>> repositories. After spending a few days refining the urls and query
>>>> patterns for my repository, I would like to share this with the rest of
>>>> the team with something more convenient that copy/paste.
>>>>
>>>> How can I add a new repository template to the generic web connector?
>>>>
>>>> I've been looking for an extension point that I could contribute to, but
>>>> no luck.
>>>>
>>>> I've searched the jars looking for an xml config or something, but again
>>>> no luck.
>>>>
>>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>>> extension point I need to use.
>>>>
>>>> Thanks
>>>> Michael
>>>>
>>>>
>
>
>
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07812 seconds