Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 260619

Summary: [web connector] support special processing for the task list with the web template
Product: z_Archived Reporter: Hiroyuki <hiroyuki.inaba>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 Keywords: helpwanted
Version: 3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
schema/updator.exsd
none
ITaskMapperUpdator.java
none
connector.patch
none
plugin.xml
none
TaskMapperUpdator.java
none
screenshot.png none

Description Hiroyuki CLA 2009-01-10 07:00:26 EST
I propose the method of extend with new extension point. 
I hope for the support of Mylyn Incubator 3.1. 

EX) In org.eclipse.mylyn.web.tasks

<extension-point id="updator" name="TaskMapper updates" schema="schema/updator.exsd"/>

The method of the extended class is invoked from WebRepositoryConnector.performQuery() method.
The method of the extended class update data of TaskMapper. 

EX) In extended plug-in

   <extension
         point="org.eclipse.mylyn.tasks.core.templates">
     <repository
           label="%SourceForge.JP.label"
           repositoryKind="web"
           urlNewTask="${serverUrl}/ticket/newticket.php?group_id=1${group_id}"
           urlRepository="http://sourceforge.jp/"
           urlTask="${serverUrl}/ticket/browse.php?group_id=${group_id}&amp;tid="
           urlTaskQuery="${serverUrl}/ticket/?group_id=${group_id}">

                :

        <attribute name="loginRequestMethod" value="POST"/>
        <attribute name="loginRequestUrl" value="${serverUrl}/account/login.php"/>
        <attribute name="param_Date_Format" value="yyyy-MM-dd HH:mm"/>
        <attribute name="taskMapperUpdator" value="jp.sourceforge.mylyn.web.tasks.TaskMapperUpdator"/>
     </repository>
   </extension>

   <extension
         point="org.eclipse.mylyn.web.tasks.updator">
      <updator
            class="jp.sourceforge.mylyn.web.tasks.TaskMapperUpdator"
            id="jp.sourceforge.mylyn.web.tasks.TaskMapperUpdator">
      </updator>
   </extension>

If this method is approved, I will upload the patch.
Comment 1 Steffen Pingel CLA 2009-01-10 15:50:10 EST
Can you describe the purpose of the extension point in more detail?
Comment 2 Hiroyuki CLA 2009-01-10 17:31:35 EST
Created attachment 122191 [details]
schema/updator.exsd

In org.eclipse.mylyn.web.tasks
Comment 3 Hiroyuki CLA 2009-01-10 17:34:30 EST
Created attachment 122192 [details]
ITaskMapperUpdator.java

Interface used by extension point
Comment 4 Hiroyuki CLA 2009-01-10 18:10:56 EST
Created attachment 122193 [details]
connector.patch

Sample: patch for WebRepositoryConnector.java
and, the part of the source code was  externalized
Comment 5 Hiroyuki CLA 2009-01-10 18:14:10 EST
Created attachment 122194 [details]
plugin.xml

Definition to use the extension point
There is a Japanese string in this
Comment 6 Hiroyuki CLA 2009-01-10 18:17:44 EST
Created attachment 122195 [details]
TaskMapperUpdator.java

Source to update value of TaskMapper
Comment 7 Hiroyuki CLA 2009-01-10 18:26:03 EST
Created attachment 122197 [details]
screenshot.png

Convert Web page (HTML) to Task List
Comment 8 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn