This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | copy and paste of java code does not include import statements | ||
---|---|---|---|
Product: | editor | Reporter: | olhemann <olhemann> |
Component: | Actions/Menu/Toolbar | Assignee: | Miloslav Metelka <mmetelka> |
Status: | NEW --- | ||
Severity: | blocker | Keywords: | PLAN |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
olhemann
2008-12-13 23:06:24 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... I tried to implement this for Java in changeset: http://hg.netbeans.org/jet-main/rev/a2e7c67fd58f 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. |