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 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

Back to the top