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 119478 - Element Definition works wrong
Summary: Element Definition works wrong
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-19 13:04 UTC by Mikhail Matveev
Modified: 2016-07-07 09:56 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 Mikhail Matveev 2007-10-19 13:04:56 UTC
1. Create newLoanApplication schema.
2. Switch to Design View.
3. Set some simple type as definition for autoLoanApplication element: select autoLoanApplication element -> popup menu
-> Properties -> click ellipsis in Definition line. Dialog appears. In the dialog, select some simple type and press OK.
4. Set some complex type as definition for autoLoanApplication element.
5. Set another complex type as definition for autoLoanApplication element.
6. Switch to Source View.
Result: autoLoanApplication still has definition of the first complex type, so step 5 was ignored.

Actually the IDE works wrong already on step 3: switching to source after this step shows that no string
<xs:element name="autoLoanApplication" type="LoanType"> appears, but inline definition is used instead.

It's a P3, but I reckon that it should be fixed for beta2.
Comment 1 Samaresh Panda 2007-10-20 02:45:44 UTC
All steps work very nicely.
Comment 2 Mikhail Matveev 2007-10-22 18:52:45 UTC
Still reproducible for me in last Beta2 build.
WinXP, JDK16
Comment 3 Samaresh Panda 2008-07-22 21:37:22 UTC
WFM.
Comment 4 tonybeckham 2008-07-22 22:13:47 UTC
Product Version: NetBeans IDE Dev (Build 200807221016)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)

Source view does not sync first change of the property when the schema is first opened.  If you save the document then
source view is synced, or changing the property again source is synced.
Comment 5 Samaresh Panda 2008-07-22 22:27:12 UTC
I'm not following. What's wrong here, can you explain?
Comment 6 Samaresh Panda 2008-11-18 16:30:59 UTC
Valid one, we should try to fix it for 7.0.
Comment 7 Martin Balin 2016-07-07 09:56:16 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