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

Bug 21807

Summary: DCR: Refactor: promote local variable to instance variable
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Peter Burka CLA 2002-07-23 10:31:38 EDT
I'd like to be able to promote a local variable to an instance variable using 
the refactor menu.

I find that when I'm designing widget code I often write code like:

Button foo = new Button(parent, SWT.PUSH);

while I'm designing the GUI. When I start connecting the pieces together I 
often discover that foo needs to be an instance variable. Refactor could help 
me make this change.
Comment 1 Peter Burka CLA 2002-07-23 10:41:04 EDT

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