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 77931 - Undo/Redo issue in relation to Drag/Drop.
Summary: Undo/Redo issue in relation to Drag/Drop.
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on: 74984 81115
Blocks:
  Show dependency tree
 
Reported: 2006-06-14 18:07 UTC by bugbridge
Modified: 2006-09-21 23:55 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 bugbridge 2006-06-14 18:07:29 UTC
Original status: 3-Accepted; Suggested Status: NEW

Original Target Release: coke_dev; Suggested Target Milestone : 5.5

Original submitter: htt

Description:
with CB 060426_2....

Open sample PO schema.
In Schema view,
  expand All Components
  expand PurchaseOrderType > sequence
  expand USAddress > sequence
  drag/drop "comment" from PurchaseOrderType to USAddress
  -> observe Undo is enabled, "comment" gone from PurchaseOrderType and appeared
under USAddress (ditto in Source view)... all good.

  click Undo
  -> "comment" is shuffled around a bit in USAddress but remains there
(reflected correctly in Source view); Redo is enabled.

  click Undo again
  -> "comment" is now gone from USAddress (reflected correctly in Source view)
and from Schema view in general; Redo remains enabled

  click Undo once more
  -> "comment" is finally back under its old roof: PurchaseOrderType (reflected
correctly in Source view); Redo remains enabled

ISSUE: seems no reason for 3 Undo actions....

Per nlfiedler on 2006-06-02 12:13:16 PDT:

This issue requires changes to the schema model; see enhancement #77329. When
that is addressed, this CR can be marked as fixed.
Comment 1 Nathan Fiedler 2006-08-23 02:26:21 UTC
After discussing with Nam, we realized that issue 77329 would not help in this
case (undo of copy/paste/reorder would be fine, but redo would not do the reorder).
Comment 2 Nathan Fiedler 2006-08-23 21:09:42 UTC
This requires change in the openide explorer module, as described in issue 81115.
Comment 3 Nathan Fiedler 2006-09-12 00:46:07 UTC
Issue 81115 has been fixed. However, issue 74984 is now blocking any attempts at
resolving this issue.
Comment 4 Nathan Fiedler 2006-09-21 00:37:17 UTC
Fixed in release55 branch. Several changes were made over the last week or so,
mostly to SchemaComponentNode and ComponentPasteType.
Comment 5 htt 2006-09-21 23:55:49 UTC
With trunk build 060921, verified mainly in the tree view (which is the setting
at the time this issue was compiled) of Schema view.