Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316835 - [api] add a flag to TaskRepository to track if it was added automatically
Summary: [api] add a flag to TaskRepository to track if it was added automatically
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: 3.5   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 17:36 EDT by Steffen Pingel CLA
Modified: 2011-01-13 23:31 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (27.63 KB, application/octet-stream)
2010-10-18 19:36 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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