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

Bug 350371

Summary: [quick fix] Save disabled after double click "create method" in quick fix
Product: [Eclipse Project] JDT Reporter: Michael Dürwald <uschkinredsunshine>
Component: UIAssignee: Deepak Azad <deepakazad>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, deepakazad, Olivier_Thomann
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Step1
none
Step2
none
Step3 none

Description Michael Dürwald CLA 2011-06-26 05:05:51 EDT
Build Identifier: 20110615-0604

When you double click in a quick fix window the save-actions get disabled if the quick-fix results in method creation in a different file. Same happens if you press "tab" after opening the quick fix and not directly using arrow keys to navigate.


The document is marked as modified thought.

Workaround:
Don't use mouse, everything is ok when using keyboard.


Reproducible: Always

Steps to Reproduce:
1. Call a non existent method
2. Perform quick fix (e.g. ctrl-1)
3. Double click on "create method"
4. Method is created but save actions are disabled (document header has a star (marked as modified))
5. Switch the active document and back again - save buttons are enabled.
Comment 1 Olivier Thomann CLA 2011-06-26 12:43:07 EDT
Move to JDT/UI
Comment 2 Dani Megert CLA 2011-07-04 09:20:11 EDT
This works fine for me on Windows 7.

Deepak, can you check on your Linux box?
Comment 3 Michael Dürwald CLA 2011-07-05 01:14:54 EDT
Created attachment 199083 [details]
Step1
Comment 4 Michael Dürwald CLA 2011-07-05 01:15:24 EDT
Created attachment 199084 [details]
Step2

Eclipse seems to lose focus
Comment 5 Michael Dürwald CLA 2011-07-05 01:15:57 EDT
Created attachment 199085 [details]
Step3

Back again with a created method but save-buttons disabled
Comment 6 Michael Dürwald CLA 2011-07-05 01:17:29 EDT
I'm using Fedora 15 (Gnome3-Shell) if it matters.
Comment 7 Deepak Azad CLA 2011-11-08 07:44:18 EST

*** This bug has been marked as a duplicate of bug 361136 ***