Bug 236594 - [extract local] Extract local should be able to convert expression to statement
Summary: [extract local] Extract local should be able to convert expression to statement
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 06:42 EDT by Benno Baumgartner CLA
Modified: 2008-06-16 05:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benno Baumgartner CLA 2008-06-11 06:42:21 EDT
I20080609-1311

Given:
	public void foo(ISelection s) {
		(IStructuredSelection)s;
	}
1. Select '(IStructuredSelection)s'
2. Ctrl+1
Is:
 No extract to local variable is available
Should:
 Extract to local resulting in

IStructuredSelection ss= (IStructuredSelection) s;

Same for all ExpressionStatements. This is one of the major pain points for me in the JDT, really, I would like to have this fixed for 3.5