Community
Participate
Working Groups
When Mylyn creates a repository from a template, it doesn't configure that repository with any of the generic attributes contained in the template. For example: here's an element from a plugin.xml file that defines a repository with a generic attribute called "repository-type". When the enclosing plugin is loaded, Mylyn will create a RepositoryTemplate object configured with all the specified information, including the repository-type attribute, but shortly thereafter, when it creates a repository from this template, it will ignore that attribute. <extension point="org.eclipse.mylyn.tasks.core.templates"> <repository addAutomatically="true" label="My special repository" repositoryKind="larryco" urlRepository="https://larryco.com/tasks"> <!-- here's the generic attribute --> <attribute name="repository-type" value="integration-test-repository"> </attribute> </repository> </extension> As far as I can tell, template attributes are not used anywhere in Mylyn. What we need is for TasksUiPlugin.loadTemplateRepositories() to copy them from the template to the newly-created repository.
The generic attributes have a somewhat strange semantic. They are only intended to be used by extensions of AbstractRepositorySettingsPage but I agree that it would be useful to make them work for templates as well. I'll put this on the backlog as an enhancement request and we will consider it as part of future planning.
Created attachment 186035 [details] in progress patch
Created attachment 186036 [details] mylyn/context/zip
*** Bug 344032 has been marked as a duplicate of this bug. ***
Steffen, any news on this one? We'd like to ship a pre-configured Red Hat bugzilla task connector with our Mylyn packages in Fedora. In order to do this, we'd need to be able to specify the custom transitions file using this extension point. Are there other options? Thanks!
The other option is to fix bug 341829 :). You could ping Frank on that bug but I can't promise when we will be able to take a look at it and Frank is currently on vacation. I'll put this bug on the backlog meanwhile to consider it during the next planning session.
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