Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Generate menu missing
Generate menu missing [message #227493] Fri, 30 January 2009 22:46 Go to next message
Eclipse User
Originally posted by: nospam.example.com

I just downloaded the JEE edition of Ganymede Eclipse.
After editing an XSD file I right-clicked on the file, expecting to see
the "Generate" menu to I could select the "XML File" option to create a
file from the schema. The option is not there.
What do I need to add to get this back? It was there in prior versions.

Thanks,
T
Re: Generate menu missing [message #227510 is a reply to message #227493] Mon, 02 February 2009 16:36 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick Sandonato
Messages: 126
Registered: July 2009
Senior Member
Todd wrote:
> I just downloaded the JEE edition of Ganymede Eclipse.
> After editing an XSD file I right-clicked on the file, expecting to see
> the "Generate" menu to I could select the "XML File" option to create a
> file from the schema. The option is not there.
> What do I need to add to get this back? It was there in prior versions.
>
> Thanks,
> T
Hi Todd,

I just checked if I could Generate an XML file from an XSD and was able
to get the menu to pop up using the JEE edition of Ganymede.

Is the *.xsd extension still associated with the XSD content type (not
necessarily the XML Schema File content type)? You can check this in
Preferences > General > Content Types. The XSD content type should be a
descendant of Text > XML. This menu item is enabled when the file is
either of DTD or XSD content types.

Nick
Re: Generate menu missing [message #227514 is a reply to message #227493] Tue, 03 February 2009 16:12 Go to previous messageGo to next message
Gabriel Indik is currently offline Gabriel Indik
Messages: 16
Registered: July 2009
Junior Member
> I just downloaded the JEE edition of Ganymede Eclipse.
> After editing an XSD file I right-clicked on the file, expecting to see
> the "Generate" menu to I could select the "XML File" option to create a
> file from the schema. The option is not there.
> What do I need to add to get this back? It was there in prior versions.

I downloaded the latest JEE edition of Ganymede Eclipse and was able to
see the "Generate" -> "XML File" item in the popup menu when
right-clicking on an XML schema file. Note there is another way of
creating an XML document from a XSD file:
"File" -> "New" -> "Other" -> "XML" -> "XML"
This will bring up a wizard, in the first page select a name and location
for the new XML document. In the following wizard page select: "Create XML
file from an XML schema file" and click on "Next". Finally, select the
schema file and click on "Finish".
If these options are not available either, I would suggest downloading
Eclipse again, there could be something wrong with the instance you have
currently running.
Re: Generate menu missing [message #227518 is a reply to message #227510] Tue, 03 February 2009 18:47 Go to previous messageGo to next message
Eclipse User
Originally posted by: nospam.example.com

Nick Sandonato wrote:
> Todd wrote:
>> I just downloaded the JEE edition of Ganymede Eclipse.
>> After editing an XSD file I right-clicked on the file, expecting to
>> see the "Generate" menu to I could select the "XML File" option to
>> create a file from the schema. The option is not there.
>> What do I need to add to get this back? It was there in prior versions.
>>
>> Thanks,
>> T
> Hi Todd,
>
> I just checked if I could Generate an XML file from an XSD and was able
> to get the menu to pop up using the JEE edition of Ganymede.
>
> Is the *.xsd extension still associated with the XSD content type (not
> necessarily the XML Schema File content type)? You can check this in
> Preferences > General > Content Types. The XSD content type should be a
> descendant of Text > XML. This menu item is enabled when the file is
> either of DTD or XSD content types.
>
> Nick

I checked the preferences and both "XML Schema File" and XSD are listed
under the Text/XML file type. There is also an item named XML
(Illformed) that has *.xsd listed. Is there some other reason the
"Generate" menu option would not show?

Thanks,
T
Re: Generate menu missing [message #227521 is a reply to message #227510] Tue, 03 February 2009 18:47 Go to previous messageGo to next message
Eclipse User
Originally posted by: nospam.example.com

Nick Sandonato wrote:
> Todd wrote:
>> I just downloaded the JEE edition of Ganymede Eclipse.
>> After editing an XSD file I right-clicked on the file, expecting to
>> see the "Generate" menu to I could select the "XML File" option to
>> create a file from the schema. The option is not there.
>> What do I need to add to get this back? It was there in prior versions.
>>
>> Thanks,
>> T
> Hi Todd,
>
> I just checked if I could Generate an XML file from an XSD and was able
> to get the menu to pop up using the JEE edition of Ganymede.
>
> Is the *.xsd extension still associated with the XSD content type (not
> necessarily the XML Schema File content type)? You can check this in
> Preferences > General > Content Types. The XSD content type should be a
> descendant of Text > XML. This menu item is enabled when the file is
> either of DTD or XSD content types.
>
> Nick

I checked the preferences and both "XML Schema File" and XSD are listed
under the Text/XML file type. There is also an item named XML
(Illformed) that has *.xsd listed. Is there some other reason the
"Generate" menu option would not show?

Thanks,
T
Re: Generate menu missing [message #227525 is a reply to message #227514] Tue, 03 February 2009 20:33 Go to previous messageGo to next message
Eclipse User
Originally posted by: nospam.example.com

Gabriel Indik wrote:
>> I just downloaded the JEE edition of Ganymede Eclipse.
>> After editing an XSD file I right-clicked on the file, expecting to
>> see the "Generate" menu to I could select the "XML File" option to
>> create a file from the schema. The option is not there.
>> What do I need to add to get this back? It was there in prior versions.
>
> I downloaded the latest JEE edition of Ganymede Eclipse and was able to
> see the "Generate" -> "XML File" item in the popup menu when
> right-clicking on an XML schema file. Note there is another way of
> creating an XML document from a XSD file:
> "File" -> "New" -> "Other" -> "XML" -> "XML"
> This will bring up a wizard, in the first page select a name and
> location for the new XML document. In the following wizard page select:
> "Create XML file from an XML schema file" and click on "Next". Finally,
> select the schema file and click on "Finish".
> If these options are not available either, I would suggest downloading
> Eclipse again, there could be something wrong with the instance you have
> currently running.
>
I do have this option and could generate an XML file from an existing
schema (XSD) file.
Re: Generate menu missing [message #227533 is a reply to message #227510] Wed, 04 February 2009 16:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: nospam.example.com

Nick Sandonato wrote:
> Todd wrote:
>> I just downloaded the JEE edition of Ganymede Eclipse.
>> After editing an XSD file I right-clicked on the file, expecting to
>> see the "Generate" menu to I could select the "XML File" option to
>> create a file from the schema. The option is not there.
>> What do I need to add to get this back? It was there in prior versions.
>>
>> Thanks,
>> T
> Hi Todd,
>
> I just checked if I could Generate an XML file from an XSD and was able
> to get the menu to pop up using the JEE edition of Ganymede.
>
> Is the *.xsd extension still associated with the XSD content type (not
> necessarily the XML Schema File content type)? You can check this in
> Preferences > General > Content Types. The XSD content type should be a
> descendant of Text > XML. This menu item is enabled when the file is
> either of DTD or XSD content types.
>
> Nick

Does it matter what perspective I am in?
I still don't have the "Generate" option on the right-click menu and I
really need it.

Thanks.
Re: Generate menu missing [message #227534 is a reply to message #227533] Wed, 04 February 2009 17:00 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick Sandonato
Messages: 126
Registered: July 2009
Senior Member
Todd wrote:
> Nick Sandonato wrote:
>> Todd wrote:
>>> I just downloaded the JEE edition of Ganymede Eclipse.
>>> After editing an XSD file I right-clicked on the file, expecting to
>>> see the "Generate" menu to I could select the "XML File" option to
>>> create a file from the schema. The option is not there.
>>> What do I need to add to get this back? It was there in prior versions.
>>>
>>> Thanks,
>>> T
>> Hi Todd,
>>
>> I just checked if I could Generate an XML file from an XSD and was
>> able to get the menu to pop up using the JEE edition of Ganymede.
>>
>> Is the *.xsd extension still associated with the XSD content type (not
>> necessarily the XML Schema File content type)? You can check this in
>> Preferences > General > Content Types. The XSD content type should be
>> a descendant of Text > XML. This menu item is enabled when the file
>> is either of DTD or XSD content types.
>>
>> Nick
>
> Does it matter what perspective I am in?
> I still don't have the "Generate" option on the right-click menu and I
> really need it.
>
> Thanks.
The perspective shouldn't matter.

As you mentioned in your other post, there is an XML (Illformed) content
type. If your XSD is illformed, this could be registering it as a
different content type than is associated with the Generate menu item.
If you bring up the properties of the file (select it and press
Alt+Enter) what does the Type field say? It should be something like
File (X).

Have you noticed any errors in the .log file that might give us some
hints to why the Generate menu item might not be present?
Re: Generate menu missing [message #227538 is a reply to message #227534] Wed, 04 February 2009 19:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: nospam.example.com

Nick Sandonato wrote:
> Todd wrote:
>> Nick Sandonato wrote:
>>> Todd wrote:
>>>> I just downloaded the JEE edition of Ganymede Eclipse.
>>>> After editing an XSD file I right-clicked on the file, expecting to
>>>> see the "Generate" menu to I could select the "XML File" option to
>>>> create a file from the schema. The option is not there.
>>>> What do I need to add to get this back? It was there in prior versions.
>>>>
>>>> Thanks,
>>>> T
>>> Hi Todd,
>>>
>>> I just checked if I could Generate an XML file from an XSD and was
>>> able to get the menu to pop up using the JEE edition of Ganymede.
>>>
>>> Is the *.xsd extension still associated with the XSD content type
>>> (not necessarily the XML Schema File content type)? You can check
>>> this in Preferences > General > Content Types. The XSD content type
>>> should be a descendant of Text > XML. This menu item is enabled when
>>> the file is either of DTD or XSD content types.
>>>
>>> Nick
>>
>> Does it matter what perspective I am in?
>> I still don't have the "Generate" option on the right-click menu and I
>> really need it.
>>
>> Thanks.
> The perspective shouldn't matter.
>
> As you mentioned in your other post, there is an XML (Illformed) content
> type. If your XSD is illformed, this could be registering it as a
> different content type than is associated with the Generate menu item.
> If you bring up the properties of the file (select it and press
> Alt+Enter) what does the Type field say? It should be something like
> File (X).
>
> Have you noticed any errors in the .log file that might give us some
> hints to why the Generate menu item might not be present?

The file type in the Properties box says:
Type: File (XML Schema File)

There is nothing of note in the install.log file. Should I be looking
somewhere else?

I must be missing something obvious somewhere but I just don't see the
"Generate" option on the menu.

Thanks,
T
Re: Generate menu missing [message #227540 is a reply to message #227538] Wed, 04 February 2009 20:10 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick Sandonato
Messages: 126
Registered: July 2009
Senior Member
Todd wrote:
> Nick Sandonato wrote:
>> Todd wrote:
>>> Nick Sandonato wrote:
>>>> Todd wrote:
>>>>> I just downloaded the JEE edition of Ganymede Eclipse.
>>>>> After editing an XSD file I right-clicked on the file, expecting to
>>>>> see the "Generate" menu to I could select the "XML File" option to
>>>>> create a file from the schema. The option is not there.
>>>>> What do I need to add to get this back? It was there in prior
>>>>> versions.
>>>>>
>>>>> Thanks,
>>>>> T
>>>> Hi Todd,
>>>>
>>>> I just checked if I could Generate an XML file from an XSD and was
>>>> able to get the menu to pop up using the JEE edition of Ganymede.
>>>>
>>>> Is the *.xsd extension still associated with the XSD content type
>>>> (not necessarily the XML Schema File content type)? You can check
>>>> this in Preferences > General > Content Types. The XSD content type
>>>> should be a descendant of Text > XML. This menu item is enabled
>>>> when the file is either of DTD or XSD content types.
>>>>
>>>> Nick
>>>
>>> Does it matter what perspective I am in?
>>> I still don't have the "Generate" option on the right-click menu and
>>> I really need it.
>>>
>>> Thanks.
>> The perspective shouldn't matter.
>>
>> As you mentioned in your other post, there is an XML (Illformed)
>> content type. If your XSD is illformed, this could be registering it
>> as a different content type than is associated with the Generate menu
>> item. If you bring up the properties of the file (select it and press
>> Alt+Enter) what does the Type field say? It should be something like
>> File (X).
>>
>> Have you noticed any errors in the .log file that might give us some
>> hints to why the Generate menu item might not be present?
>
> The file type in the Properties box says:
> Type: File (XML Schema File)
>
> There is nothing of note in the install.log file. Should I be looking
> somewhere else?
>
> I must be missing something obvious somewhere but I just don't see the
> "Generate" option on the menu.
>
> Thanks,
> T
As mentioned earlier, the Generate menu item is enabled when the content
type is XSD or DTD content types. From your Properties, the content type
is XML Schema File.

The log file you should be looking at is the .log file in the .metadata
directory of your workspace directory.

Could you also check to see if the org.eclipse.wst.xsd.core plugin is
loaded from Help > About Eclipse Platform > Plug-in Details. Without
this plugin, the XSD content type is not defined.

Also, are you able to bring up the Generate menu on any other XSDs or
DTDs in your workspace? Or is it one XSD in particular?
Re: Generate menu missing [message #227541 is a reply to message #227540] Wed, 04 February 2009 20:25 Go to previous message
Eclipse User
Originally posted by: nospam.example.com

Nick Sandonato wrote:
> Todd wrote:
>> Nick Sandonato wrote:
>>> Todd wrote:
>>>> Nick Sandonato wrote:
>>>>> Todd wrote:
>>>>>> I just downloaded the JEE edition of Ganymede Eclipse.
>>>>>> After editing an XSD file I right-clicked on the file, expecting
>>>>>> to see the "Generate" menu to I could select the "XML File" option
>>>>>> to create a file from the schema. The option is not there.
>>>>>> What do I need to add to get this back? It was there in prior
>>>>>> versions.
>>>>>>
>>>>>> Thanks,
>>>>>> T
>>>>> Hi Todd,
>>>>>
>>>>> I just checked if I could Generate an XML file from an XSD and was
>>>>> able to get the menu to pop up using the JEE edition of Ganymede.
>>>>>
>>>>> Is the *.xsd extension still associated with the XSD content type
>>>>> (not necessarily the XML Schema File content type)? You can check
>>>>> this in Preferences > General > Content Types. The XSD content type
>>>>> should be a descendant of Text > XML. This menu item is enabled
>>>>> when the file is either of DTD or XSD content types.
>>>>>
>>>>> Nick
>>>>
>>>> Does it matter what perspective I am in?
>>>> I still don't have the "Generate" option on the right-click menu and
>>>> I really need it.
>>>>
>>>> Thanks.
>>> The perspective shouldn't matter.
>>>
>>> As you mentioned in your other post, there is an XML (Illformed)
>>> content type. If your XSD is illformed, this could be registering it
>>> as a different content type than is associated with the Generate menu
>>> item. If you bring up the properties of the file (select it and press
>>> Alt+Enter) what does the Type field say? It should be something like
>>> File (X).
>>>
>>> Have you noticed any errors in the .log file that might give us some
>>> hints to why the Generate menu item might not be present?
>>
>> The file type in the Properties box says:
>> Type: File (XML Schema File)
>>
>> There is nothing of note in the install.log file. Should I be looking
>> somewhere else?
>>
>> I must be missing something obvious somewhere but I just don't see the
>> "Generate" option on the menu.
>>
>> Thanks,
>> T
> As mentioned earlier, the Generate menu item is enabled when the content
> type is XSD or DTD content types. From your Properties, the content type
> is XML Schema File.
>
> The log file you should be looking at is the .log file in the .metadata
> directory of your workspace directory.
>
> Could you also check to see if the org.eclipse.wst.xsd.core plugin is
> loaded from Help > About Eclipse Platform > Plug-in Details. Without
> this plugin, the XSD content type is not defined.
>
> Also, are you able to bring up the Generate menu on any other XSDs or
> DTDs in your workspace? Or is it one XSD in particular?

I checked the plug-in details and I do see the org.eclipse.wst.xsd.core
Id. The version is 1.1.301.v200807240448.

I cannot bring up the Generate menu for any schemas (XSD). However, I
can generate the XML file using the File -> New -> Other -> XML File
(Create XML file from XML schema file), as suggested in a separate post.

Thanks,
T
Previous Topic:Bringing up the WSDL Editor in Debugger
Next Topic:Publish to Geronimo
Goto Forum:
  


Current Time: Fri Sep 19 16:10:09 GMT 2014

Powered by FUDForum. Page generated in 0.02276 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software