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 81538 - Safe Delete doesn't show usage in BPEL file
Summary: Safe Delete doesn't show usage in BPEL file
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 20:48 UTC by Sherry Barkodar
Modified: 2006-10-19 14:50 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-31 20:48:54 UTC
Using the latest build.
Open SynchronousSample.
Open SynchronousSample.xsd.
Add a new element by doing the following:
In the Schema view, the first column, right-click the Elements node -> Add Element.
In the customiser dialog box select Use Existing Type and select simpleProcess
from the Complex Types.newElement is created
Open the BPEL file and create a variable that using this newElement.
Open XSD file and do a Safe Delete on newElement, and click Next.
When click Next, because the newElement is used in the BPEL file it has to take
you to the dialog box with a warning and Show Usage button but it does not.

It doesn't give you any information that this element is used in the BPEL file.
Comment 1 Vladimir Yaroslavskiy 2006-08-01 07:31:47 UTC
Bpel refactoring provider returns usages of schema element in bpel file but
refactoring engine doesn't show warnings about these usages. Fix should be done
in refactoing engine.
Comment 2 Chris Webster 2006-08-02 19:26:08 UTC
Fixed in release55. 

This fix adds default behavior to RefactoringEngine.precheck to handle the
conversion of findUsages to warnings for safe delete. The BPEL refactoring engine
did not provide the conversion in the precheck, so we added this default
behavior to the RefactoringEngine.precheck. 

Comment 3 htt 2006-09-21 21:43:36 UTC
Verified in milestone build 20a.
Comment 4 Sherry Barkodar 2006-09-21 22:01:15 UTC
It says:
refactoring engine doesn't show warnings about these usages. Fix should be done
in refactoing engine. Does that mean dialog box with a warning or no warning?
Comment 5 htt 2006-09-21 23:14:12 UTC
Putting it back to RESOLVED/FIXED and leave it up to the bug submitter to
finalize the case.
Comment 6 htt 2006-09-21 23:14:43 UTC
Putting it back to RESOLVED/FIXED and leave it up to the bug submitter to
finalize the case.
Comment 7 Andrei Chistiakov 2006-10-19 14:50:48 UTC
Verified in build 061010_1.