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

Bug 6462

Summary: Paste with indention? [editor] [ccp] [dnd]
Product: [Eclipse Project] Platform Reporter: Martin Aeschlimann <martinae>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: email, ric.almeida
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2001-11-30 09:25:39 EST
1. In a JUnit Test project
2. In the packages view, copy class TestSetup
3. Paste it as inner class to ActiveTest
4. The pasted class is not indented.

I agree that copy paste is not changing anything, but indention would be handy.
Comment 1 Erich Gamma CLA 2001-12-02 17:37:45 EST
I like the idea of a context sensitive paste.
It could be even more sensitive an import required imports.
Nice to have for now
Comment 2 Jesper Nordenberg CLA 2001-12-03 04:58:49 EST
IDEA has this feature and it's great. It correctly indents the pasted area and 
checks for required imports. Btw, you should really look at IDEA and try to 
implement most of it's unique features. It's the best IDE I've tried.
Comment 3 Erich Gamma CLA 2002-05-19 20:01:42 EDT
defer
Comment 4 Dirk Baeumer CLA 2002-08-31 13:25:54 EDT
Reopening for investigation
Comment 5 Ricardo Jorge PC de Almeida CLA 2002-11-29 11:48:46 EST
Is the identation working on Build 200211271305? I supose it is, but it a wrong
way. What happens to me is that I use a 4 space identation and eclipse is
identint everything ok. When I copy-paste something the pasted code appears with
a 8 space identation...
Comment 6 Kai-Uwe Maetzel CLA 2003-01-13 12:16:20 EST
"Unassign" PRs because of changes in staffing
Comment 7 Tom Hofmann CLA 2003-09-12 11:43:05 EDT
I don't belive it's still possible to paste classes as inner classes. Closing.