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 181321 - Schema tab and Design palette not work properly
Summary: Schema tab and Design palette not work properly
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on:
Blocks: 182294
  Show dependency tree
 
Reported: 2010-02-28 00:06 UTC by rostallone
Modified: 2010-03-18 13:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (174.76 KB, image/png)
2010-03-17 14:21 UTC, _ alexpetrov
Details
screen shot (1.40 MB, image/png)
2010-03-17 14:22 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rostallone 2010-02-28 00:06:54 UTC
<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xml.netbeans.org/schema/SynchronusSample"
    xmlns:tns="http://xml.netbeans.org/schema/SynchronusSample"
    elementFormDefault="qualified">

<!--Main error-->
<xsd:attribute name="focus" default="Java">
<xsd:simpleType base="string">
<enumeration value="XML" />
<enumeration value="Java" />
</xsd:simpleType>
</xsd:attribute>
<!--Main error-->
<xsd:simpleType name="music">
    <xsd:restriction base="xsd:string"/>
    </xsd:simpleType>
</xsd:schema>

-----------------------------------------------
on adding attribute with enumeration the schema tab for .xsd docment don't response properly
In the Design tab the palette don't show XML components and XML schema components.
Comment 1 Sergey Lunegov 2010-03-16 10:14:38 UTC
Alex, please take a look.
Comment 2 _ alexpetrov 2010-03-17 14:21:08 UTC
It's not a bug.
Now NetBeans IDE doesn't contain multiview editor for XML schemas by default - only text editor is presented.
To add required features the SOA plugin should be installed (see the attached screenshot_SOA_Plugin.png and screenshot_btnDesign_XMLPalette.png).

NetBeans IDE behaviour has been checked on:

Product Version: NetBeans IDE Dev (Build 201003170201)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Linux version 2.6.18-8.el5 running on i386
Comment 3 _ alexpetrov 2010-03-17 14:21:50 UTC
Created attachment 95301 [details]
screen shot
Comment 4 _ alexpetrov 2010-03-17 14:22:37 UTC
Created attachment 95303 [details]
screen shot
Comment 5 _ alexpetrov 2010-03-18 12:08:56 UTC
new comment received from PCM <stallonerocky2@gmail.com>:



i have the plugin



the problem occur with this code



<xsd:attribute name="focus" default="Java">

<xsd:simpleType base="string">

<enumeration value="XML" />

<enumeration value="Java" />

</xsd:simpleType>



as soon as this code is entered the Design and schema editor start

behaving differently

on adding attribute with enumeration the schema tab for .xsd docment don't

response properly

In the Design tab the palette don't show XML components and XML schema

components.
Comment 6 _ alexpetrov 2010-03-18 12:09:33 UTC
This bug is blocked by http://netbeans.org/bugzilla/show_bug.cgi?id=182294
Comment 7 _ alexpetrov 2010-03-18 13:02:08 UTC
Fixed due to fixing of the bug http://netbeans.org/bugzilla/show_bug.cgi?id=182294
Fixed in trunk:   http://hg.netbeans.org/main/rev/7eb84d83fe7e
Fixed in gfesb23: http://hg-soabi.stc.com/gfesbv23/rev/af2e2c41e4b6