Bug 147835 - [refactoring] Change type of variable/object
Summary: [refactoring] Change type of variable/object
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.2   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: 2006-06-20 04:46 EDT by Larsen Doe CLA
Modified: 2010-11-04 06:43 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 Larsen Doe CLA 2006-06-20 04:46:58 EDT
It would be comfortable to have the ability to change the type of an object via a refactoring tool.

For exampe, change an object from type InputStreamReader to BufferedReader:

//	private InputStreamReader isr;
	private BufferedReader isr;

//			isr = new InputStreamReader(sock.getInputStream());
			isr = new BufferedReader(sock.getInputStream());

//	public InputStreamReader getIsr() {
//		return isr;
//	}
	public BufferedReader getIsr() {
		return isr;
	}
Comment 1 Martin Aeschlimann CLA 2006-06-20 13:05:46 EDT
In this case a local rename (CTRL + 1) on the type name probably does the job. 

Comment 2 Larsen Doe CLA 2006-06-21 03:54:33 EDT
oh, yes. thank you!
doesn´t work for String or int but this is already useful