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.

Bug 185722

Summary: [69cat] Copy of editor file to different location, e.g. Favourites
Product: editor Reporter: ulfzibis <ulfzibis>
Component: Actions/Menu/ToolbarAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED WONTFIX    
Severity: normal CC: olangr
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description ulfzibis 2010-05-07 17:47:44 UTC
[ BUILD # : 201005050200 ]
[ JDK VERSION : 1.6.* ]

If nothing is selected in editor text area, context-menu->Copy should copy the
whole file to clipboard, to paste it to a node in the project/file/favourites
browser.
(otherwise, "Copy" should be disabled)
Additionally there should be a "Copy" item in the editor tab menu.
Comment 1 ulfzibis 2010-05-11 15:56:11 UTC
Enabled "copy" item in the context menu is a defect, if there is nothing to copy.
So disable it, or interpret is as "copy the whole file".
Comment 2 Vitezslav Stejskal 2010-05-11 16:20:22 UTC
It copies the current line (ie. the line where the caret stands).
Comment 3 ulfzibis 2012-11-30 12:42:34 UTC
(In reply to comment #2)
> It copies the current line (ie. the line where the caret stands).

Maybe the label then should be changed to "Copy Line".
Comment 4 Martin Balin 2016-07-07 07:26:24 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss