Bug 15175 - Need API to retrieve all shared working copies for a buffer factory
Summary: Need API to retrieve all shared working copies for a buffer factory
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2002-05-03 06:21 EDT by Erich Gamma CLA
Modified: 2002-05-07 04:41 EDT (History)
0 users

See Also:


Attachments

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