Bug 108105 - [open type] Do less type history consistency checks
Summary: [open type] Do less type history consistency checks
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: Dirk Baeumer CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-26 08:48 EDT by Dirk Baeumer CLA Friend
Modified: 2005-09-02 08:53 EDT (History)
2 users (show)

See Also:


Attachments
The patch (8.84 KB, patch)
2005-08-26 09:03 EDT, Dirk Baeumer CLA Friend
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA Friend 2005-08-26 08:48:33 EDT
3.1.

The type history consistency check is done every time the dialog opens. However
this check is only needed when types have been removed from the system. So the
history could listen on delta changes an only perform the check if necessary.
Comment 1 Dirk Baeumer CLA Friend 2005-08-26 09:03:46 EDT
Created attachment 26526 [details]
The patch
Comment 2 Dirk Baeumer CLA Friend 2005-08-26 09:04:17 EDT
Dani, Markus can you please review the patch. 
Comment 3 Dirk Baeumer CLA Friend 2005-08-26 09:07:02 EDT
The code got released into Head beginning of August and is shipped with M1. No
complains so far. So if you are happy with the patch I would like to backport it
to 3.1.1.
Comment 4 Dirk Baeumer CLA Friend 2005-08-26 09:09:08 EDT
One additional note: the code is basically the old all types cache flush
listener code. 
Comment 5 Markus Keller CLA Friend 2005-08-26 11:59:18 EDT
The patch is fine, +1 for 3.1.1.
Comment 6 Dani Megert CLA Friend 2005-08-29 10:07:47 EDT
Reviewed the patch. For me it is OK to release. I found the following minor issues:
- with the patch there's now a small timeframe where the dialog's data can be
  inconsistent if the user removes or changes a type quickly in the editor and
  opens the dialog immediately afterwards. I don't see this as a show stopper

- Javadoc and field have typo: fHistroy [this has not been introduced by the 
  patch]
- the introduced delta listener has commented method
- IProgressMonitor.done() should be inside a finally block
Comment 7 Dirk Baeumer CLA Friend 2005-08-31 05:46:07 EDT
Dani, thanks for the review. Here my comments:

1.) Agree that there is a small window where this can happen. However if it
    occurrs the dialog still behaves OK. Selecting the element and trying to 
    reopnen it simply gives a message dialog. Fixing this will require 
    reconcling the CU which might introduce dead locks.

2.) will fix this in HEAD

3.) removed

4.0 will fix this in HEAD since the code already existed like this in 3.1.0.
Comment 8 Tobias Widmer CLA Friend 2005-09-02 08:53:11 EDT
Verified using M20050831-1200 + ZRH plugin export