Bug 333226 - [quick assist] move selected variable declaration outside of a block
Summary: [quick assist] move selected variable declaration outside of a block
Status: CLOSED DUPLICATE of bug 218622
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-27 03:05 EST by Sethu CLA
Modified: 2010-12-27 05:23 EST (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 Sethu CLA 2010-12-27 03:05:22 EST
Build Identifier: 20100917-0705

Very often we face a scenario where we declare and use variables inside a block such as a try block. We then later realise that oh! I need to close this/these variable(s) in the finally block. We then have to copy and place only the declaration of these variables above the try. Then we can use these variables in the finally block to close it. It would be great if we had a refactoring tool to say move the variable declaration above by one block or two blocks or a number of blocks that we specify. 

Reproducible: Always

Steps to Reproduce:
This is an enhancement
Comment 1 Deepak Azad CLA 2010-12-27 05:23:43 EST
Note that you can use the trick from bug 218622 comment 4.

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