Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] How to add a new TaskEditorPart in the task editor view?

Hi all,
and thank Steffen, I've just added my checkboxes in to new TaskEditorPart for "dependent" on fields.
It works.

Since I can have many checkboxes, I wish to use a scroll area for this TaskEditorPart.
How can I do it?
Do you have a suggestion?

pasquy


Date: Thu, 12 Jan 2012 15:27:31 +0100
From: steffen.pingel@xxxxxxxxxxx
To: mylyn-dev@xxxxxxxxxxx
Subject: Re: [mylyn-dev] How to add a new TaskEditorPart in the task editor view?

Hi,

it sounds like you are on the right track. You need to implement marshaling that converts your domain objects into TaskAttributes and vice versa. The task editor part needs to store all modifications into a TaskAttribute which is then converted back to a domain object in your TaskDataHandler implementation to post it to the server.

How to best implement marshaling will depend on the nature of your domain objects. You can find various examples in the Trac, Bugzilla or JIRA connector implementations (e.g. WorkLogConverter for JIRA).

Steffen


On Thu, Jan 12, 2012 at 3:15 PM, pasquale vitale <pasquale_vitale@xxxxxxxxxxx> wrote:
Hi Steffen,
thanks for replay.
   
I have just followed your first suggestion. I'm looking at the implementation in JiraTaskEditorPage and I have added my custom part description (Dependent On Task) like "Work Log" in Jira plugin.
I have added a FusionForgeTaskEditorDependentOnPart (like WorkLogPart) too.
In my TaskHandler I have inserted addDependentOn and postDependentOn methods (like addWorkLog and postWorkLog).
It works, I have added "dependent on task" part description in my custom edit view for my task in fusion forge plugin.

I have a checkbox list (of dependent on) retrieved by a soap api.
Now, I must add my dynamic checkbox list (for Dependent On Task) inside part desciption.

Then I must select some items and set my "DependentOnArray" array of FusionForgeIssue object (like JiraIssue) before to submit.

In edit mode, I have to retrieve all items of "dependent on" field  and I have to select items of FusionForgeIssue object array (DependentOnArray).

I have just added all items using DEPENDENT_ON Attribute (like PROJECT or PRIORITY inside JiraAttribute) but I don't know how set my "dependentOn" FusionForgeIssue array.

Can you help me?

Thanks,
pasquy


Date: Tue, 10 Jan 2012 19:02:46 +0100
From: steffen.pingel@xxxxxxxxxxx
To: mylyn-dev@xxxxxxxxxxx
Subject: Re: [mylyn-dev] How to add a new TaskEditorPart in the task editor view?


Hi,

a simple way of adding parts to your own editor page is to override AbstractTaskEditorPage.createPartDescriptors(). You can add custom part descriptors that create sections in the task editor. Have a look at the implementation in BugzillaTaskEditorPage which is good example how to modify the list of default parts.

The other option is the org.eclipse.mylyn.tasks.ui.taskEditorPageContribution extension point which allows adding of parts to any editor.

Steffen


On Tue, Jan 10, 2012 at 6:35 PM, pasquale vitale <pasquale_vitale@xxxxxxxxxxx> wrote:
Hi all,
I've creating my custom edit view for my task in fusion forge plugin.

Fusion forge uses a "dependent on task" multiselect field to add all task dependencies.

I think to use a list of checkbox that an user can select or deselect.

I want to use a TaskEditorPart (like comment or attachment) for display all dependency.

According to you does this have sense?
Do you any other suggestion?
 
Do you have any sample code for the TaskEditorPart usage?

Thanks,

pasquy


_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev




--
Steffen Pingel
Senior Software Developer, Eclipse Mylyn
Mylyn Tasks Lead
http://tasktop.com


_______________________________________________ mylyn-dev mailing list mylyn-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/mylyn-dev

_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev




--
Steffen Pingel
Senior Software Developer, Eclipse Mylyn
Mylyn Tasks Lead
http://tasktop.com


_______________________________________________ mylyn-dev mailing list mylyn-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/mylyn-dev

Back to the top