Community
Participate
Working Groups
Sometimes a connector has a reason to prohibit the user from creating a task repository by itself (e.g. the connector manages it's task repositories some other way).
Thomas, would you be interested in providing a patch? I think it should be as simple as adding a AbstractRepositoryConnector.canCreateRepository() method that is checked in the relevant places (see context).
Created attachment 154046 [details] mylyn/context/zip
Created attachment 154051 [details] patch v1 This might do the trick (works in my test scenario). Hope I did not forget another entry point for adding a repository...
Created attachment 154052 [details] mylyn/context/zip
Please take a look at TaskRepositoryParameterValues. I believe it may need a filter as well or the command contribution for adding a task repository needs to be modified.
Created attachment 154058 [details] patch v2 Do you mean something like that?
Created attachment 154059 [details] mylyn/context/zip
Yes, that looks good. I'll merge this once we are increasing version numbers to 3.4.
great, thanks.
Patch applied to head. Thanks Thomas!