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 54896 - "Paste" stops working when editing java src with form
Summary: "Paste" stops working when editing java src with form
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 20:04 UTC by twolf2919
Modified: 2007-11-05 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description twolf2919 2005-02-11 20:04:52 UTC
I'm running the 2/9 build but noticed this problem
even in the R4.0 release:

Quite often while editng a Java file with
protected code blocks (the ones generated by NB's
form designer) I lose the ability to "Paste" after
doing a "Copy". 

I would just be doing stuff within the src file
(editing, adding, removing code, etc. - but NEVER
in the "protected code blocks") - when the Paste
would stop working.  If I close the source file
and then re-open it, the Paste is active again and
the text I previously 'Copy'd would be properly
pasted.
Comment 1 Martin Roskanin 2005-03-15 16:01:22 UTC
Do you mean pasting via editor context menu (invoked after right mouse button)
or the paste from MainWindow/Edit/Paste or using shortcut CTRL+V? Which one
doesn't work? What JDK version are you using? Thanks.
Comment 2 Martin Roskanin 2005-03-17 12:48:49 UTC
Comment from user:
"I am using JDK 1.5.0, JRE 1.5.0 and Netbeans 4.1. I had the same problem
with
Netbeans 4.0.

I never had this problem with Netbeans 3.6. using the same JKD and JRE.

When I copy with the context menu, move the cursor where I want to copy to
and then
bring up the context menu again, the paste option of the menu is grayed out.

When I first run the Netbeans IDE I am able to do a few cuts and pastes but
after approximately
ten cuts and pastes it stops working.

I have to run a separate microsoft editor application to do cut and paste
while I run
the Netbeans IDE."
Comment 3 Martin Roskanin 2005-03-17 14:09:19 UTC
Aha, I can reproduce it using following scenario:
1. select some code in protected area
2. right mouse click to popup context menu
3. copy
4. right click to non protected area - paste is disabled

on the contrary, if there is no selection, paste action is sensitive to
protected/unprotected area

Is this the scenario you have reproduced or do you have another one?
Comment 4 Miloslav Metelka 2005-10-17 16:06:00 UTC
I cannot reproduce the original problem and neither the one that Martin R.
reported. Closing as worksforme. Please reopen the issue if the problem persists
with present builds.