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 85512 - Paste using context menu action in BPEL Source Editor not working
Summary: Paste using context menu action in BPEL Source Editor not working
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 01:18 UTC by hemant_bedekar
Modified: 2006-10-24 21:19 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 hemant_bedekar 2006-09-22 01:18:14 UTC
In the BPEL Editor, Copy - Paste using Mouse is broken.

You can Copy-Paste text using Ctrl+C abd Ctrl+V. But cannot do the same thing
using mouse.

STEPS TO REPRODUCE:
Open a BPEL file in BPEL Editor. Switch to Source View. Using mouse select some
text. Right click on the selected text and click Copy. Now, click somewhere
else, Right click and notice that the "Paste" option in not available. Do a
Ctrl+V to ensure that the text was actually been held in the clipboard - but NB
does not show the "Paste" option.
Comment 1 Michael Frisino 2006-09-22 07:59:36 UTC
strange ... I wonder if this problem exists in other XML source editors.

I am sure that Ctrl-V worked in the past. Never tried to look for the Paste action.
Comment 2 Michael Frisino 2006-09-22 08:05:07 UTC
what is going on here. I just tested it on windows and both Copy and Paste were
avaialable in the source editor and both worked fine.

what platform are you using.
Comment 3 Michael Frisino 2006-09-22 08:06:18 UTC
changing to INVALID to see if our QE can quickly test this on other platforms.
Otherwise we will need 12 hours until Hemant comes back.
Comment 4 Mikhail Kondratyev 2006-09-22 09:40:11 UTC
Could reproduce this on Windows with build from 2006.09.21
Reopening the bug
Comment 5 hemant_bedekar 2006-09-22 09:47:27 UTC
This is on Windows XP on a Dell Intel laptop. I have Netbeans 5.5 Dev ( Build
200609150000, Ent Pack 20060915 )
Comment 6 Michael Frisino 2006-09-22 10:22:12 UTC
must have been introduced in last 48 hours because i do not see it on 48 hour
old build.
Comment 7 Vitaly Bychkov 2006-09-29 11:07:20 UTC
FYI:
platforms: 
    Windows XP, java 1.5.0_07
    Windows XP, java 1.6.0-beta2-b86

It's reproduced with builds: 060922_16, 060919_33, 060915_1 and from 060623...
So it looks like it's very old problem...


Comment 8 Vitaly Bychkov 2006-09-29 11:55:18 UTC
FYI:
another use case:
 close navigator panel,
 open bpel editor 
 switch to the source view 
 close and then open IDE 

bpel source view opened, navigator panel closed
all copy, paste, cut actions are disabled...

It looks like problem joined with current active node and actionMap 
Comment 9 Denis Anisimov 2006-10-03 08:52:58 UTC
Fixed in _dev branch.
Comment 10 Denis Anisimov 2006-10-03 08:54:03 UTC
File Changes:

Directory: /enterprise/bpel/core/src/org/netbeans/modules/bpel/core/multiview/
==============================================================================

File [changed]: BPELSourceMultiViewElement.java
Url:
http://enterprise.netbeans.org/source/browse/enterprise/bpel/core/src/org/netbeans/modules/bpel/core/multiview/BPELSourceMultiViewElement.java?r1=1.1.2.7&r2=1.1.2.7.2.1
Delta lines:  +5 -1
-------------------
--- BPELSourceMultiViewElement.java	28 Aug 2006 08:38:50 -0000	1.1.2.7
+++ BPELSourceMultiViewElement.java	3 Oct 2006 07:52:23 -0000	1.1.2.7.2.1
@@ -88,7 +88,11 @@
          */
         associateLookup(new ProxyLookup(new Lookup[] {
         // Lookups.singleton(getDataObject().getNodeDelegate())
-                Lookups.fixed(new Object[] { getDataObject(),
+                Lookups.fixed(new Object[] {
+                        // Need ActionMap in lookup so editor actions work.
+                        // Fix for #85512.
+                        getActionMap(),
+                        getDataObject(),
                         getDataObject().getNodeDelegate() }) }));
         /*
          * getDataObject() is put here because method createMultiView in 
Comment 11 Mikhail Kondratyev 2006-10-03 09:33:30 UTC
This is already fixed. Needs to be integrated in to release 5.5 branch
Comment 12 Alexey Yarmolenko 2006-10-03 09:44:31 UTC
Reviewed this fix: the same thing already implemented in schema and wsdl 
source editors. Seems to be high effect, low risk fix.
Comment 13 Michael Frisino 2006-10-03 10:12:21 UTC
Are there any other expected "benefits" from ActionMap? It seems strange that
the only thing not working without the action map would have been the Paste? 
Comment 14 Denis Anisimov 2006-10-03 10:23:07 UTC
Fixed in both branches.
Comment 15 Victoria Zhukovskaya 2006-10-05 14:22:42 UTC
"Paste" option in available
WinXp 061004