Summary: | [api] allow disabling of repository creation for a connector | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | z_Archived | Reporter: | Thomas Ehrnhoefer <thomas.ehrnhoefer> | ||||||||||||
Component: | Mylyn | Assignee: | Thomas Ehrnhoefer <thomas.ehrnhoefer> | ||||||||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
Severity: | enhancement | ||||||||||||||
Priority: | P2 | CC: | steffen.pingel, thomas.ehrnhoefer | ||||||||||||
Version: | unspecified | Keywords: | contributed, noteworthy | ||||||||||||
Target Milestone: | 3.4 | ||||||||||||||
Hardware: | All | ||||||||||||||
OS: | All | ||||||||||||||
Whiteboard: | |||||||||||||||
Attachments: |
|
Description
Thomas Ehrnhoefer
2009-12-08 14:08:46 EST
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! |