Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Using Mylyn from other plug-ins (task picker)
Using Mylyn from other plug-ins (task picker) [message #19618] Thu, 26 July 2007 16:11 Go to next message
Eclipse UserFriend
Originally posted by: mphippard.collab.net

I have an app I am working on that needs to access data in issues stored in
an issue tracker. I am writing this to Mylyn as that is what our issue
tracker uses for its UI.

I have a select box, where a user can enter a list of tasks. I have my code
working to properly get the task data using Mylyn. This was easy to do, by
the way. The API was great.

The only thing I'd like to do that I haven't is provide some kind of select
dialog that let them select tasks from a list. This dialog could work like
the Open Task dialog does, except I'd want to limit the tasks shown to those
from a specific repository. I'd also like the user to be able to specify
multiples.

So two questions:

1) Do you provide any Select Dialog like this that can be used?
2) I cannot find the API one would use to build this. I basically just want
something that can list all of the tasks that are known locally for a
repository.

Mark
Re: Using Mylyn from other plug-ins (task picker) [message #19663 is a reply to message #19618] Thu, 26 July 2007 16:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mphippard.collab.net

On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
Phippard" <mphippard@collab.net> wrote:

> I have an app I am working on that needs to access data in issues stored in
> an issue tracker. I am writing this to Mylyn as that is what our issue
> tracker uses for its UI.
>
> I have a select box, where a user can enter a list of tasks. I have my code
> working to properly get the task data using Mylyn. This was easy to do, by
> the way. The API was great.
>
> The only thing I'd like to do that I haven't is provide some kind of select
> dialog that let them select tasks from a list. This dialog could work like
> the Open Task dialog does, except I'd want to limit the tasks shown to those
> from a specific repository. I'd also like the user to be able to specify
> multiples.
>
> So two questions:
>
> 1) Do you provide any Select Dialog like this that can be used?
> 2) I cannot find the API one would use to build this. I basically just want
> something that can list all of the tasks that are known locally for a
> repository.

I found TaskListManager after sending this. So I know I can do #2 easily
enough.

Mark
Re: Using Mylyn from other plug-ins (task picker) [message #19708 is a reply to message #19663] Thu, 26 July 2007 16:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

Mark Phippard wrote:
> On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
> Phippard" <mphippard@collab.net> wrote:
>
>
>>I have an app I am working on that needs to access data in issues stored in
>>an issue tracker. I am writing this to Mylyn as that is what our issue
>>tracker uses for its UI.
>>
>>I have a select box, where a user can enter a list of tasks. I have my code
>>working to properly get the task data using Mylyn. This was easy to do, by
>>the way. The API was great.
>>
>>The only thing I'd like to do that I haven't is provide some kind of select
>>dialog that let them select tasks from a list. This dialog could work like
>>the Open Task dialog does, except I'd want to limit the tasks shown to those
>>from a specific repository. I'd also like the user to be able to specify
>>multiples.
>>
>>So two questions:
>>
>>1) Do you provide any Select Dialog like this that can be used?
>>2) I cannot find the API one would use to build this. I basically just want
>>something that can list all of the tasks that are known locally for a
>>repository.
>
>
> I found TaskListManager after sending this. So I know I can do #2 easily
> enough.
>
> Mark
>

If you can query a list of tasks, then you can make a selection dialog
sort of like this:

* ListSelectionDialog dlg =
* new ListSelectionDialog(
* getShell(),
* input,
* new BaseWorkbenchContentProvider(),
* new WorkbenchLabelProvider(),
* "Select the resources to save:");
* dlg.setInitialSelections(dirtyEditors);
* dlg.setTitle("Save Resources");
* dlg.open();

You would just need content and label providers that work with tasks.

HTH,
David
Re: Using Mylyn from other plug-ins (task picker) [message #19789 is a reply to message #19708] Thu, 26 July 2007 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mphippard.collab.net

On 7/26/07 12:43 PM, in article f8aiv0$umt$1@build.eclipse.org, "David
Whiteman" <david_whiteman@us.ibm.com> wrote:

> Mark Phippard wrote:
>> On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
>> Phippard" <mphippard@collab.net> wrote:
>>
>>
>>> I have an app I am working on that needs to access data in issues stored in
>>> an issue tracker. I am writing this to Mylyn as that is what our issue
>>> tracker uses for its UI.
>>>
>>> I have a select box, where a user can enter a list of tasks. I have my code
>>> working to properly get the task data using Mylyn. This was easy to do, by
>>> the way. The API was great.
>>>
>>> The only thing I'd like to do that I haven't is provide some kind of select
>>> dialog that let them select tasks from a list. This dialog could work like
>>> the Open Task dialog does, except I'd want to limit the tasks shown to those
>>> from a specific repository. I'd also like the user to be able to specify
>>> multiples.
>>>
>>> So two questions:
>>>
>>> 1) Do you provide any Select Dialog like this that can be used?
>>> 2) I cannot find the API one would use to build this. I basically just want
>>> something that can list all of the tasks that are known locally for a
>>> repository.
>>
>>
>> I found TaskListManager after sending this. So I know I can do #2 easily
>> enough.
>>
>> Mark
>>
>
> If you can query a list of tasks, then you can make a selection dialog
> sort of like this:
>
> * ListSelectionDialog dlg =
> * new ListSelectionDialog(
> * getShell(),
> * input,
> * new BaseWorkbenchContentProvider(),
> * new WorkbenchLabelProvider(),
> * "Select the resources to save:");
> * dlg.setInitialSelections(dirtyEditors);
> * dlg.setTitle("Save Resources");
> * dlg.open();
>
> You would just need content and label providers that work with tasks.

Thanks. Building our own dialog is not an issue, as we are experienced
Eclipse team. I just wanted to know if there was something to reuse, and if
not, what the data API was. I had looked for the latter and not found it
until I sent it.

Mark-
Re: Using Mylyn from other plug-ins (task picker) [message #19939 is a reply to message #19789] Fri, 27 July 2007 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rob.elves.eclipse.org

Mark Phippard wrote:
> On 7/26/07 12:43 PM, in article f8aiv0$umt$1@build.eclipse.org, "David
> Whiteman" <david_whiteman@us.ibm.com> wrote:
>
>> Mark Phippard wrote:
>>> On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
>>> Phippard" <mphippard@collab.net> wrote:
>>>
>>>
>>>> I have an app I am working on that needs to access data in issues stored in
>>>> an issue tracker. I am writing this to Mylyn as that is what our issue
>>>> tracker uses for its UI.
>>>>
>>>> I have a select box, where a user can enter a list of tasks. I have my code
>>>> working to properly get the task data using Mylyn. This was easy to do, by
>>>> the way. The API was great.
>>>>
>>>> The only thing I'd like to do that I haven't is provide some kind of select
>>>> dialog that let them select tasks from a list. This dialog could work like
>>>> the Open Task dialog does, except I'd want to limit the tasks shown to those
>>>> from a specific repository. I'd also like the user to be able to specify
>>>> multiples.
>>>>
>>>> So two questions:
>>>>
>>>> 1) Do you provide any Select Dialog like this that can be used?
>>>> 2) I cannot find the API one would use to build this. I basically just want
>>>> something that can list all of the tasks that are known locally for a
>>>> repository.
>>>
>>> I found TaskListManager after sending this. So I know I can do #2 easily
>>> enough.
>>>
>>> Mark
>>>
>> If you can query a list of tasks, then you can make a selection dialog
>> sort of like this:
>>
>> * ListSelectionDialog dlg =
>> * new ListSelectionDialog(
>> * getShell(),
>> * input,
>> * new BaseWorkbenchContentProvider(),
>> * new WorkbenchLabelProvider(),
>> * "Select the resources to save:");
>> * dlg.setInitialSelections(dirtyEditors);
>> * dlg.setTitle("Save Resources");
>> * dlg.open();
>>
>> You would just need content and label providers that work with tasks.
>
> Thanks. Building our own dialog is not an issue, as we are experienced
> Eclipse team. I just wanted to know if there was something to reuse, and if
> not, what the data API was. I had looked for the latter and not found it
> until I sent it.
>
> Mark-
>
>
There currently isn't a dialog that meets these requirements although
Willian Mitsuda contributed the RemoteTaskSelectionDialog
(OpenRepositoryTask) dialog and is likely the best place to start from.
That and the TaskSelectionDialog.

-Rob
Re: Using Mylyn from other plug-ins (task picker) [message #19984 is a reply to message #19939] Sat, 28 July 2007 01:47 Go to previous message
Eclipse UserFriend
Originally posted by: beatmik.acm.org

Mark: this sounds like a very reasonable enhancement request for the API
to support (e.g. a repository-specific way of invoking the Open Task
dialog). I can imagine other connectors wanting this, and a you'll
notice from bugs like the following that the UI parts of this can be
tricky and could be good to make commonly available.

193849: [patch] Allow filtering of completed tasks open task dialog
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193849

That said, experimenting with your own dialog could still be a good
idea, in particular if you are able to couple to the new
FilteredItemsSelectionDialog API in Eclipse 3.3.

Just fyi, this kind inquiry is best sent to the mylyn-integrators
mailing list.

Mik

Robert Elves wrote:
> There currently isn't a dialog that meets these requirements although
> Willian Mitsuda contributed the RemoteTaskSelectionDialog
> (OpenRepositoryTask) dialog and is likely the best place to start from.
> That and the TaskSelectionDialog.
>
> -Rob
Re: Using Mylyn from other plug-ins (task picker) [message #575716 is a reply to message #19618] Thu, 26 July 2007 16:27 Go to previous message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
Phippard" <mphippard@collab.net> wrote:

> I have an app I am working on that needs to access data in issues stored in
> an issue tracker. I am writing this to Mylyn as that is what our issue
> tracker uses for its UI.
>
> I have a select box, where a user can enter a list of tasks. I have my code
> working to properly get the task data using Mylyn. This was easy to do, by
> the way. The API was great.
>
> The only thing I'd like to do that I haven't is provide some kind of select
> dialog that let them select tasks from a list. This dialog could work like
> the Open Task dialog does, except I'd want to limit the tasks shown to those
> from a specific repository. I'd also like the user to be able to specify
> multiples.
>
> So two questions:
>
> 1) Do you provide any Select Dialog like this that can be used?
> 2) I cannot find the API one would use to build this. I basically just want
> something that can list all of the tasks that are known locally for a
> repository.

I found TaskListManager after sending this. So I know I can do #2 easily
enough.

Mark
Re: Using Mylyn from other plug-ins (task picker) [message #575783 is a reply to message #19663] Thu, 26 July 2007 16:43 Go to previous message
David Whiteman is currently offline David WhitemanFriend
Messages: 166
Registered: July 2009
Senior Member
Mark Phippard wrote:
> On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
> Phippard" <mphippard@collab.net> wrote:
>
>
>>I have an app I am working on that needs to access data in issues stored in
>>an issue tracker. I am writing this to Mylyn as that is what our issue
>>tracker uses for its UI.
>>
>>I have a select box, where a user can enter a list of tasks. I have my code
>>working to properly get the task data using Mylyn. This was easy to do, by
>>the way. The API was great.
>>
>>The only thing I'd like to do that I haven't is provide some kind of select
>>dialog that let them select tasks from a list. This dialog could work like
>>the Open Task dialog does, except I'd want to limit the tasks shown to those
>>from a specific repository. I'd also like the user to be able to specify
>>multiples.
>>
>>So two questions:
>>
>>1) Do you provide any Select Dialog like this that can be used?
>>2) I cannot find the API one would use to build this. I basically just want
>>something that can list all of the tasks that are known locally for a
>>repository.
>
>
> I found TaskListManager after sending this. So I know I can do #2 easily
> enough.
>
> Mark
>

If you can query a list of tasks, then you can make a selection dialog
sort of like this:

* ListSelectionDialog dlg =
* new ListSelectionDialog(
* getShell(),
* input,
* new BaseWorkbenchContentProvider(),
* new WorkbenchLabelProvider(),
* "Select the resources to save:");
* dlg.setInitialSelections(dirtyEditors);
* dlg.setTitle("Save Resources");
* dlg.open();

You would just need content and label providers that work with tasks.

HTH,
David
Re: Using Mylyn from other plug-ins (task picker) [message #575858 is a reply to message #19708] Thu, 26 July 2007 17:45 Go to previous message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
On 7/26/07 12:43 PM, in article f8aiv0$umt$1@build.eclipse.org, "David
Whiteman" <david_whiteman@us.ibm.com> wrote:

> Mark Phippard wrote:
>> On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
>> Phippard" <mphippard@collab.net> wrote:
>>
>>
>>> I have an app I am working on that needs to access data in issues stored in
>>> an issue tracker. I am writing this to Mylyn as that is what our issue
>>> tracker uses for its UI.
>>>
>>> I have a select box, where a user can enter a list of tasks. I have my code
>>> working to properly get the task data using Mylyn. This was easy to do, by
>>> the way. The API was great.
>>>
>>> The only thing I'd like to do that I haven't is provide some kind of select
>>> dialog that let them select tasks from a list. This dialog could work like
>>> the Open Task dialog does, except I'd want to limit the tasks shown to those
>>> from a specific repository. I'd also like the user to be able to specify
>>> multiples.
>>>
>>> So two questions:
>>>
>>> 1) Do you provide any Select Dialog like this that can be used?
>>> 2) I cannot find the API one would use to build this. I basically just want
>>> something that can list all of the tasks that are known locally for a
>>> repository.
>>
>>
>> I found TaskListManager after sending this. So I know I can do #2 easily
>> enough.
>>
>> Mark
>>
>
> If you can query a list of tasks, then you can make a selection dialog
> sort of like this:
>
> * ListSelectionDialog dlg =
> * new ListSelectionDialog(
> * getShell(),
> * input,
> * new BaseWorkbenchContentProvider(),
> * new WorkbenchLabelProvider(),
> * "Select the resources to save:");
> * dlg.setInitialSelections(dirtyEditors);
> * dlg.setTitle("Save Resources");
> * dlg.open();
>
> You would just need content and label providers that work with tasks.

Thanks. Building our own dialog is not an issue, as we are experienced
Eclipse team. I just wanted to know if there was something to reuse, and if
not, what the data API was. I had looked for the latter and not found it
until I sent it.

Mark-
Re: Using Mylyn from other plug-ins (task picker) [message #575928 is a reply to message #19789] Fri, 27 July 2007 14:35 Go to previous message
Robert Elves is currently offline Robert ElvesFriend
Messages: 87
Registered: July 2009
Member
Mark Phippard wrote:
> On 7/26/07 12:43 PM, in article f8aiv0$umt$1@build.eclipse.org, "David
> Whiteman" <david_whiteman@us.ibm.com> wrote:
>
>> Mark Phippard wrote:
>>> On 7/26/07 12:11 PM, in article C2CE3FFA.4BB1%mphippard@collab.net, "Mark
>>> Phippard" <mphippard@collab.net> wrote:
>>>
>>>
>>>> I have an app I am working on that needs to access data in issues stored in
>>>> an issue tracker. I am writing this to Mylyn as that is what our issue
>>>> tracker uses for its UI.
>>>>
>>>> I have a select box, where a user can enter a list of tasks. I have my code
>>>> working to properly get the task data using Mylyn. This was easy to do, by
>>>> the way. The API was great.
>>>>
>>>> The only thing I'd like to do that I haven't is provide some kind of select
>>>> dialog that let them select tasks from a list. This dialog could work like
>>>> the Open Task dialog does, except I'd want to limit the tasks shown to those
>>>> from a specific repository. I'd also like the user to be able to specify
>>>> multiples.
>>>>
>>>> So two questions:
>>>>
>>>> 1) Do you provide any Select Dialog like this that can be used?
>>>> 2) I cannot find the API one would use to build this. I basically just want
>>>> something that can list all of the tasks that are known locally for a
>>>> repository.
>>>
>>> I found TaskListManager after sending this. So I know I can do #2 easily
>>> enough.
>>>
>>> Mark
>>>
>> If you can query a list of tasks, then you can make a selection dialog
>> sort of like this:
>>
>> * ListSelectionDialog dlg =
>> * new ListSelectionDialog(
>> * getShell(),
>> * input,
>> * new BaseWorkbenchContentProvider(),
>> * new WorkbenchLabelProvider(),
>> * "Select the resources to save:");
>> * dlg.setInitialSelections(dirtyEditors);
>> * dlg.setTitle("Save Resources");
>> * dlg.open();
>>
>> You would just need content and label providers that work with tasks.
>
> Thanks. Building our own dialog is not an issue, as we are experienced
> Eclipse team. I just wanted to know if there was something to reuse, and if
> not, what the data API was. I had looked for the latter and not found it
> until I sent it.
>
> Mark-
>
>
There currently isn't a dialog that meets these requirements although
Willian Mitsuda contributed the RemoteTaskSelectionDialog
(OpenRepositoryTask) dialog and is likely the best place to start from.
That and the TaskSelectionDialog.

-Rob
Re: Using Mylyn from other plug-ins (task picker) [message #575951 is a reply to message #19939] Sat, 28 July 2007 01:47 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Mark: this sounds like a very reasonable enhancement request for the API
to support (e.g. a repository-specific way of invoking the Open Task
dialog). I can imagine other connectors wanting this, and a you'll
notice from bugs like the following that the UI parts of this can be
tricky and could be good to make commonly available.

193849: [patch] Allow filtering of completed tasks open task dialog
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193849

That said, experimenting with your own dialog could still be a good
idea, in particular if you are able to couple to the new
FilteredItemsSelectionDialog API in Eclipse 3.3.

Just fyi, this kind inquiry is best sent to the mylyn-integrators
mailing list.

Mik

Robert Elves wrote:
> There currently isn't a dialog that meets these requirements although
> Willian Mitsuda contributed the RemoteTaskSelectionDialog
> (OpenRepositoryTask) dialog and is likely the best place to start from.
> That and the TaskSelectionDialog.
>
> -Rob
Previous Topic:Bugzilla not providing well-formed document
Next Topic:Custom Resolution values in Bugzilla not shown in Mylyn
Goto Forum:
  


Current Time: Fri Apr 26 23:14:40 GMT 2024

Powered by FUDForum. Page generated in 0.05362 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top