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 127779 - Schema content not updated before XML generation
Summary: Schema content not updated before XML generation
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-19 18:00 UTC by Mikhail Matveev
Modified: 2016-07-07 09:56 UTC (History)
0 users

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 Mikhail Matveev 2008-02-19 18:00:34 UTC
1. Create newLoanApplication schema.
2. Create a new global element.
3. Popup menu on the schema -> Generate Sample XML.
Result: no just created element in Root Element combobox.
Workaround is to save schema before XML generation.

IMHO either user should be asked if he wants to save changes before generation, or it should be done automatically.
Comment 1 Samaresh Panda 2008-03-25 05:11:27 UTC
It has nothing to do with save. Wait for few seconds and you should see the new element. Just like there is a delay in
source and design, similarly there is a delay here.
Comment 2 Mikhail Matveev 2008-03-25 14:34:56 UTC
No, even after waiting several minutes I don't see the new element in the combobox.
Comment 3 Samaresh Panda 2008-03-25 18:52:27 UTC
You're right. The problem is, we're not using axiom model for finding the elements and hence the element doesn't show
up. However, on a second thought, it doesn't sound like a p3 bug to me. Nothing is broken here. If you, think about it,
the element doesn't show up because the doc is not saved and appears when it is saved.

If you insist, we can have a yes/no messagebox (requires change in resource bundle) that will ask the user, but can be
done post 6.1.
Comment 4 Martin Balin 2016-07-07 09:56:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss