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 86226 - A bit of confusion in Design view involving Undo/Redo & Import
Summary: A bit of confusion in Design view involving Undo/Redo & Import
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 22:15 UTC by htt
Modified: 2006-10-03 20:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2006-09-29 22:15:07 UTC
Open LoanApp sample schema.
Open a new schema
In the new schema, in Schema view, right-click namespace, Add > Import
In Import,
  expand By File, select newLoanApplication.xsd
  enter a prefix
  click OK
In Design view,
  drag/drop an element, press <CR>
  -> newElement; Undo is enabled
  click Undo
  -> newElement disappears; Undo remains enabled; Redo is enabled
  click Undo again
  -> Undo/Redo remain enabled
  click Undo twice more
  -> now newElement returns; Undo/Redo remain enabled
  click Undo
  -> newElement disappears; Undo finally disabled; Redo enabled
  click Redo
  -> newElement returns; Undo/Redo remain enabled
  ckick Redo
  -> newElement disappears; Undo/Redo remain enabled

Apparently Undo/Redo account for the Add > Import step as well, which explains
why Undo stays enabled after newElement is undone.  One can keep clicking on
Undo while not really observing anything UI-wise in the DV, hence the momentary
confusion...