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

Bug 285569

Summary: [extract method] Wrongly enabled checkbox
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Benjamin Muskalla <b.muskalla>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Dani Megert CLA 2009-08-04 08:40:02 EDT
I20090803-1800, regression introduced by fix for bug .

1. paste into Package Explorer
public class Foo {
        public void foo() {
                Object obj= new Object() {
                        public String toString() {
                                return "foo." + getName();
                        }
                };
                String s= "foo." + getName();
        }

        private String getName() {return "bar";}
}
2. select first ""foo." + getName()"
3. extract method
==> dialog has the field to replace other occurrence enabled which is wrong
Comment 1 Dani Megert CLA 2009-08-04 08:40:55 EDT
>introduced by fix for bug .
bug 160853.
Comment 2 Dani Megert CLA 2009-08-04 08:51:53 EDT
See bug 285572 for the bad naming of that checkbox.
Comment 3 Markus Keller CLA 2009-08-04 09:18:20 EDT
It's only the checkbox enablement -- the refactoring is correct. For M2, unless the fix is really simple (which I doubt, since it requires the snippet finder to be run whenever the destination changes).
Comment 4 Dani Megert CLA 2011-04-12 06:29:32 EDT
Ping! Benny, any plans to work on this?
Comment 5 Eclipse Genie CLA 2018-10-18 15:25:28 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.