Bug 155422 - copy and paste of java code does not include import statements
copy and paste of java code does not include import statements
Status: NEW
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar
6.x
Macintosh All
: P2 (vote)
: 7.1
Assigned To: Miloslav Metelka
issues@editor
: PLAN
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-13 23:06 UTC by olhemann
Modified: 2011-08-23 14:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description olhemann 2008-12-13 23:06:24 UTC
When you cut/copy some code from a file and paste it into another, it would be VERY nice if the import statements were
also included.
Comment 1 Petr Dvorak 2008-12-14 15:36:55 UTC
This issue is not really a defect, as copy/paste actions aren't supposed to do anything like this, it is more an
enhancement. I think the priority is very low though. You can simply invoke "Fix Imports" action by pressing
Ctrl+Shift+I, which will add new imports and remove unused imports...
Comment 2 Jan Lahoda 2011-08-22 20:34:03 UTC
I tried to implement this for Java in changeset:
http://hg.netbeans.org/jet-main/rev/a2e7c67fd58f
Comment 3 Quality Engineering 2011-08-23 14:00:59 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a2e7c67fd58f
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #155422: transferring types through copy&paste.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo