Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316835

Summary: [api] add a flag to TaskRepository to track if it was added automatically
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: unspecified   
Target Milestone: 3.5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2010-06-14 17:36:55 EDT
TaskRepositoryUtil.isAddAutomatically() queries all available templates to determine whether a repository was automatically added. This is inefficient and breaks when an extension that contributed a repository is uninstalled. This should instead be tracked on the repository, e.g. through a boolean flag.
Comment 1 Steffen Pingel CLA 2010-06-15 15:22:53 EDT
Also strip trailing slashes from repository urls when templates are parsed to ensure that templates are properly matched to repositories.
Comment 2 Steffen Pingel CLA 2010-10-18 19:36:37 EDT
Added API for flagging repositories as automatically added. This will be set from Mylyn 3.5 onwards. Slashes are now stripped when templates are parsed. 

New API methods:
* TaskRepository.isCreatedFromTemplate()
* TaskRepository.setCreatedFromTemplate()
Comment 3 Steffen Pingel CLA 2010-10-18 19:36:39 EDT
Created attachment 181139 [details]
mylyn/context/zip