Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-integrators] Question about task attributes for a new connector

We've seen connectors of this generic nature get implemented so it can be done! At the very least you will need to map the id and summary attributes (perhaps also date_modified). The rich editor support will not be as easy as it was for Trac for example though since you will need to provide custom implementations for most of the editor sections to handle your dynamic attributes. You may just opt to to have a single custom attributes section and eliminate the other sections. Depending on when you retrieve the set of possible attributes, you will likely either store it in you connector specific repository configuration (see Bugzilla), or on a per ticket basis with the RepositoryTaskData.

-Rob



Brian Steele wrote:
Hi,

I'm doing research for creating a new connector for Mylyn.  I've
already looked at code for the existing Trac and Bugzilla connectors
to get some idea what is required, but there is one question I have
that isn't answered by looking at those connectors.

The repository I'm planning to connect has only two static attributes,
one is the task number and the other is a short description.  All the
other attributes are user-defined.  The Bugzilla and Trac attribute
factory classes have static mappings between Trac/Bugzilla attributes
and the built-in Mylyn attributes.  Do you have any suggestions on how
to handle the situation where 99% of the attributes in the repository
are user defined?  I can get all the attribute definitions from the
repository at runtime, but they are not known at compile time.

I expect that I may have to provide a preferences page that allows the
user to define the mappings, but maybe there is a better way?

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



--
Mylyn Committer, http://eclipse.org/mylyn



Back to the top