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 21387 - After using DnD to move in Component Inspector popup contains "Paste" item instead "Move"
Summary: After using DnD to move in Component Inspector popup contains "Paste" item in...
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-08 16:36 UTC by Marian Mirilovic
Modified: 2003-06-30 18:27 UTC (History)
1 user (show)

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 Marian Mirilovic 2002-03-08 16:36:58 UTC
[nb_dev](20020308), [jdk1.4.1](04) && [jdk1.4](92)

Steps tor reproduce:
- open/create form
- add JButton
- select jButton1 in Component Inspector (CI)
- try DnD to Other Components
- leave left mouse button
-> popup menu is showned , contains menu item "Paste" instead "Move" that isn't
consistent with Explorer DnD behaviour
Comment 1 Jiri Rechtacek 2002-03-11 07:37:22 UTC

*** This issue has been marked as a duplicate of 21109 ***
Comment 2 Jiri Rechtacek 2002-03-11 18:33:40 UTC
Instead of duplicate set depends on issue 21109, sorry for confusing.
Comment 3 Jiri Rechtacek 2002-04-11 17:36:22 UTC
The heart of the problem is nb DnD overtakes the drop(==paste) actions
from the node which is selected for drop. It seems that FormNode
provides only a default Paste action w/o specification Move/Copy. It
try assign on Form module. I ready to provide more information.
Comment 4 Tomas Pavek 2002-04-15 17:08:41 UTC
Can you tell me how to turn on the DnD?
Comment 5 Jiri Rechtacek 2002-04-15 17:22:41 UTC
DnD is enabled with -J-Dnetbeans.dnd.enabled=true (announced on nbdev)
on jdk1.4. You can look too on Paste action in the FromNode's popup
menu with Cut&Paste and with Copy&Paste operation.
Comment 6 Tomas Pavek 2002-04-15 17:29:42 UTC
Hmmm, when I try to drag&drop some component now, it is 
just moved and no popup menu is shown. As for me, it works 
well, I see no problem in form editor...
Comment 7 Tomas Pavek 2002-04-16 11:02:01 UTC
I see now ... the PasteType should just return "Move" as 
name for cut/paste and "Copy" for copy/paste operations.
Comment 8 Tomas Pavek 2002-04-16 11:19:07 UTC
Done.
Comment 9 Marian Mirilovic 2002-04-19 09:44:08 UTC
verified in [nb_dev](20020419)
Comment 10 Quality Engineering 2003-06-30 18:27:51 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.