Bug 39085 - refactoring changes the currently visible editor and prevents saving [refactoring] [editor]
Summary: refactoring changes the currently visible editor and prevents saving [refacto...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2003-06-18 15:27 EDT by Rafael Chaves CLA
Modified: 2009-08-30 02:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2003-06-18 15:27:52 EDT
Build id: 200306110800

After renaming an interface method while a class implementing that interface is
opened in an editor, the class editor becomes visible, hiding the interface I
was editing.

The second effect is that the editor where the interface was being edited seems
to be in sync (no dirty sign - *). If I try to change the interface, the editor
does not become dirty (no dirty sign, save icon disabled, "File->Save" action
disabled). Luckily, if I try to close the editor, I am asked if want to save the
file. Otherwise, I would have lost the content.

It happens often in my workspace, but I cannot reproduce it in a new one. But I
thought you might have some clue, or someone else may face the same problem.
Comment 1 Dirk Baeumer CLA 2003-06-19 04:41:50 EDT
Rafael, a reproducable case would be really helpful here.

Kai, can you please comment on the editor switching. Refactoring simply 
requests the document from the document provider. We don't switch editors in 
our code.
Comment 2 Rafael Chaves CLA 2003-06-19 08:44:10 EDT
Yes, I know... I tried to reproduce it, but so far, I couldn't. Once/if I find
steps to reproduce it, I will add them to this PR.

About the editor selection being changed, it happens at any refactoring
operation involving another class opened in a different editor. But since the
editor selection is (when the bug does not happen) automatically restored after
the operation finishes, that does not bother me. 
Comment 3 Dirk Baeumer CLA 2003-08-26 05:22:04 EDT
Rafael,

did you find a reproducable case. If not I would like to set the PR on remind.
Comment 4 Rafael Chaves CLA 2003-08-26 09:15:19 EDT
Sorry, but I couldn't.
Comment 5 Dirk Baeumer CLA 2003-08-26 09:19:43 EDT
Marked PR as remind
Comment 6 Denis Roy CLA 2009-08-30 02:06:24 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.