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 81213 - Safe Delete Doesn't work properly
Summary: Safe Delete Doesn't work properly
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 23:22 UTC by Sherry Barkodar
Modified: 2006-10-19 14:45 UTC (History)
2 users (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 Sherry Barkodar 2006-07-26 23:22:27 UTC
Open SynchronousSample Project
Double-click SynchronousSample.xsdl to open the schema file
In the schema view , select Elements, typeA.
Right-click typeA -> Refactor -> Safe Delete..
Safe Delete box opens. leave the Preview All Changes box checked.
Click Next.
Safe Delete box opens.
Under List of Errors, you will get a warning symbole(triangle)Is this a warning
or a bug? Click Show usage.
Click Rerun Delete typeA.
The Safe Delete box is reopened.
Select Next.
From here, you cannot do anything because the Next button is disabled
Comment 1 Nam Nguyen 2006-07-27 05:52:34 UTC
Caused by ParametersPanel next button incorrectly disable.
Also have to fix performAction on next button after going back from showUsages
window.
Comment 2 Nam Nguyen 2006-07-27 05:56:01 UTC
Fixed as explained above:

/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/Attic/RefactorRequest.java,v
 <--  RefactorRequest.java
new revision: 1.1.2.9; previous revision: 1.1.2.8
/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/ui/j/spi/ui/Attic/ParametersPanel.java,v
 <--  ParametersPanel.java
new revision: 1.1.2.5; previous revision: 1.1.2.4
/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/ui/j/ui/Attic/RefactoringPanel.java,v
 <--  RefactoringPanel.java
new revision: 1.1.2.10; previous revision: 1.1.2.9
Comment 3 Sherry Barkodar 2006-07-31 19:53:00 UTC
The Next button is enabled but there are still some issue with the message.
Please change the message to something similar to Java refactoring Safe Delete
Message. The current message says:
Cascade delete of referencing components is not supported.
The Java safe delete  message is more meaningful:
References to selected elements were found. Remove all references to these
elements in order to safely delete your class.
Also when click on Rerun Delete typeA, it takes you to two more dialog boxes for
the delete. It should take you directly to the last dialog.
Comment 4 Andrei Chistiakov 2006-10-19 14:45:41 UTC
Verified in build 061010_1.