Nothing Happens

Help
loomax
2004-10-14
2013-04-17
  • loomax

    loomax - 2004-10-14

    When i select "generate" on an xsd file no files are generated.
    What am i doing wrong.

    Also the toggle button reacts just like a normal button. I would expect to see whether enabled or not.

    The Properties Dialog of the Project is correctly showing the XMLBean Builder

    This are the log file entries

    !ENTRY uk.ltd.grian.eclipse.xmlbeans 1 1 Okt 13, 2004 17:10:54.197
    !MESSAGE XMLBeanBuilder.prepareToSave()

    !ENTRY uk.ltd.grian.eclipse.xmlbeans 1 1 Okt 13, 2004 17:10:54.197
    !MESSAGE XMLBeanBuilder.prepareToSave()

    !ENTRY uk.ltd.grian.eclipse.xmlbeans 1 1 Okt 13, 2004 17:10:54.197
    !MESSAGE XMLBeanBuilder.saving()

    !ENTRY uk.ltd.grian.eclipse.xmlbeans 1 1 Okt 13, 2004 17:10:54.207
    !MESSAGE XMLBeanBuilder.saving()

    !ENTRY uk.ltd.grian.eclipse.xmlbeans 1 1 Okt 13, 2004 17:10:54.357
    !MESSAGE XMLBeanBuilder.doneSaving()

    !ENTRY uk.ltd.grian.eclipse.xmlbeans 1 1 Okt 13, 2004 17:10:54.367
    !MESSAGE XMLBeanBuilder.doneSaving()

     
    • loomax

      loomax - 2004-10-14

      I think this was because I took an xsd file in a format not expected -- it was

      <?xml version='1.0'?>

      <schema>

        <element name="product">
          <type content="elemOnly" order="seq">

            <element ref="product-group" minOccurs="1" maxOccurs="1"/>
            <element ref="product-inventory" minOccurs="1" maxOccurs="1"/>

            <attribute name="id" type="ID" minOccurs="1"/>
            <attribute name="name" type="string" minOccurs="1"/>
            <attribute name="price" type="real" minOccurs="1"/>

          </type>
        </element>

        <element name="product-group">
          <type content="empty">

            <attribute name="id" type="ID" minOccurs="1"/>
            <attribute name="name" type="string" minOccurs="1"/>

          </type>
        </element>

        <element name="product-inventory">
          <type content="empty">

            <attribute name="quantity" type="integer" minOccurs="1"/>

          </type>
        </element>

      </schema>

       
    • Don Stewart

      Don Stewart - 2004-10-18

      The XSD was invalid but you should have got a red error symbol on the xsd in the Eclipse view and a list of problems should be visible in the Problems tab.

      The type needs to be a simpleType or complexType :o)

      I'll check with this file myself and see what happens.

       
    • Don Stewart

      Don Stewart - 2004-10-18

      You are correct does not generate or show errors I will investigate.

      As to the Icon you are also correct you could raise it as a feature request :o) I agree it should be a toggle switch.

       
    • loomax

      loomax - 2004-11-23

      I  had to "clean" and "generate" again -- then it worked

       
    • Don Stewart

      Don Stewart - 2004-11-23

      Yes that's an issue with 0.0.2. I have since found a new build type AUTO_BUILD which the code was not aware of and this is responsible, at least in part, for it not building at times. Doing a clean causes a full build which is handled. 0.0.3 is nearing completion and this has many fixes, new features and has had alot more testing on it.

       

Log in to post a comment.