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 71786 - Copied and Pasted Text from outside IDE does not behave well
Summary: Copied and Pasted Text from outside IDE does not behave well
Status: RESOLVED DUPLICATE of bug 88161
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jaroslav Tulach
Depends on:
Reported: 2006-01-24 08:36 UTC by Dan Kolar
Modified: 2008-12-22 11:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kolar 2006-01-24 08:36:06 UTC
Sun Java Studio Enterprise 8 EA

Can not copy and paste text directly from NB5.
Pasted text wrongly can not find classes/methods.

1. Open up NB5 and JSE8.
2. In NB5 copy some code from a project.
3. Go to JSE8 and try to paste.
4. It copies a blank line.
1. From Notepad copy some code for class 1.
2. in JSE8 create a new class
3. paste class 1 code into class
4. back to notepad - copy some code for class 2 and have it reference class 1
5. go back to JSE8 and create a new class for class 2.
6. paste class 2 into newly created class.
7. Class 2 can not see class 1.
8. if you erase the class reference and retype it by hand, JSE8 will now 'see' it. 

1. To paste from NB5 into JSE8, first paste code from NB5 into Notepad, the
reselect and copy in Notepad. Then paste into JSE8.
2. Erase pasted references in JSE8 and handtype it instead for JSE8 to locate
Comment 2 Milan Kubec 2006-01-24 10:27:08 UTC
Please evaluate. Thanks.
Comment 3 Miloslav Metelka 2006-02-01 17:12:44 UTC
This might be related to NB-specific clipboard handling patches. I'm unable to
fix this in the editor module anyway since the editor delegates cut/copy/paste
actions directly to JTextComponent.cut()/copy()/paste()
Reassigning to core/swing for evaluation. Adding Yarda to cc.
Comment 4 Jaroslav Tulach 2006-02-03 07:32:31 UTC
Run with clipboard logging please -Dorg.netbeans.core.NbClipboard=-1 to at 
least provide info of what is wrong. 
Comment 5 David Simonek 2006-10-17 18:11:47 UTC
Reporter, any new info? I'll close the issue wihtout additional info, with
current info nothing we can do. Thanks.
Comment 6 David Simonek 2007-09-14 10:25:51 UTC
Passing to Jarda, may it be the same problem as I passed to you several days ago?
Comment 7 Jaroslav Tulach 2007-09-19 16:42:49 UTC

*** This issue has been marked as a duplicate of 88161 ***