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 16027

Summary: terminal emulator/output window: Global copy & paste actions don't work
Product: cnd Reporter: Torbjorn Norbye <tor>
Component: TerminalemulatorAssignee: akemr <akemr>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Torbjorn Norbye 2001-09-29 02:36:00 UTC
The Copy & Paste actions don't work in the Output Window.
(Perhaps I should file a separate bug on that).

It also doesn't work in my own NetBeans windows which are
using the terminal emulator.

I was trying to implement these actions. I can implement
copy without Term support (by calling getSelectedText()
or something like that and placing it on the clipboard
myself), but I can't paste (move text from the clipboard
into the input buffer). Once you implement paste() I think
copy() belongs there by symmetry.

So, can you provide copy() and paste() methods in term?
I think all you need to do is:

* Rename "stuff_selection" to "paste" and make it public
* Add
 
     public void copy() {
        sel.done(true);
     }
Comment 1 akemr 2001-10-01 12:53:27 UTC
Ivan,
to solve this, I need to be notified when selection changes,
so I reassign this bug to you for that part.

OW already implements PropertyChangeListener, so could you e.g. fire 
some property change "selection_changed"..?
Comment 2 akemr 2001-10-08 13:25:30 UTC
Reassign to me, because Ivan finished his part.
Comment 3 akemr 2001-10-09 07:43:51 UTC
Copy action implemented in trunk.
Comment 4 Jan Chalupa 2001-11-27 11:52:25 UTC
Target milestone -> 3.3.1.
Comment 5 Jan Chalupa 2001-11-27 11:56:12 UTC
Target milestone -> 3.3.1.
Comment 6 akemr 2001-12-07 12:51:28 UTC
Fixed in release33
Paste action implemented (after fix in 
terminalemulator.LineDiscipline)
Comment 7 Marian Mirilovic 2002-05-06 14:00:14 UTC
verified in [nb_dev](20020506)
Comment 8 Quality Engineering 2003-07-01 16:38:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 9 Quality Engineering 2008-12-23 08:21:48 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.