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

Bug 23021

Summary: Cancel does not work in "Organize Import" dialog [code manipulation]
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: erich_gamma, kai-uwe_maetzel
Version: 2.0   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dani Megert CLA 2002-08-30 06:01:59 EDT
Build 20020827

Test Case:
1. Self hosting workspace
2. Switch to Java Browsing perspective
3. Select all packages in the "Packages" view
4. Start "Organize Import"
5. Press "Cancel"
Comment 1 Martin Aeschlimann CLA 2002-09-30 06:07:26 EDT
Refactring has the same problem
The operation can't be forked but has to be called in the UI thread because as 
soon as an editor is open on a file that is touched an invalid thread access 
error is thrown.
The editor updates on document changes directly, it does not post events to the 
UI thread. I think we have to look at this again as this got more severe with 
the introduction of pluggable buffermanagers to jdt-core.
Comment 2 Martin Aeschlimann CLA 2002-09-30 10:50:59 EDT
*** Bug 19110 has been marked as a duplicate of this bug. ***
Comment 3 Martin Aeschlimann CLA 2003-01-15 06:12:18 EST
fixed > 20030114
The operation is now run in a forked thread, but does syncExec for each 
modification.