Bug 15175

Summary: Need API to retrieve all shared working copies for a buffer factory
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 Keywords: api
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Erich Gamma CLA 2002-05-03 06:21:16 EDT
We initialize the search engine with a set of working copies for a particular 
buffer factory. There is currently no API to retrieve all shared working copies 
and JDT UI has to maintain its own registry which duplicates the JavaCore 
provided working set support. Suggest to add JavaCore.getSharedWorkingCopies
(IBufferFactory factory).
Comment 1 Philipe Mulet CLA 2002-05-03 06:50:12 EDT
If publishing your buffer factory as API, then this suggested API might find 
more working copies than you'd expect ? Isn't it better to actually remember 
the ones which matter to you instead (as you currently do) ?
Comment 2 Erich Gamma CLA 2002-05-06 09:59:38 EDT
When a client creates a shared working copy using our buffer factory then it 
should participate in our search. In addition, we would like to get rid of our 
own private registry which can result in inconsistencies.
Comment 3 Philipe Mulet CLA 2002-05-07 04:41:39 EDT
Added JavaCore#getSharedWorkingCopies(IBufferFactory)

Fixed