Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350371 - [quick fix] Save disabled after double click "create method" in quick fix
Summary: [quick fix] Save disabled after double click "create method" in quick fix
Status: CLOSED DUPLICATE of bug 361136
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 05:05 EDT by Michael Dürwald CLA
Modified: 2011-11-08 07:44 EST (History)
3 users (show)

See Also:


Attachments
Step1 (54.94 KB, image/png)
2011-07-05 01:14 EDT, Michael Dürwald CLA
no flags Details
Step2 (111.50 KB, image/png)
2011-07-05 01:15 EDT, Michael Dürwald CLA
no flags Details
Step3 (55.51 KB, image/png)
2011-07-05 01:15 EDT, Michael Dürwald CLA
no flags Details

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