Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSDPrototypicalSchema and classpath
XSDPrototypicalSchema and classpath [message #9474] Thu, 23 January 2003 21:11 Go to next message
Andy Yang is currently offline Andy YangFriend
Messages: 42
Registered: July 2009
Member
Hi All,

I'm trying to run the sample code that came with the article "Analyze
Schemas with the XML Schema Infoset Model" by Shane Curcuru.

I've downloaded the xsd and emf distributions from eclipse.org and set
them up as external jar files from WSAD 5. I've put the following jars
in my build path:

org.eclipse.emf.common_1.0.1\runtime\common.jar
org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
org.eclipse.xsd_1.0.1\runtime\xsd.jar

but I'm getting the following compile error:

The method getString(java.lang.String) from the type
org.eclipse.emf.common.EMFPlugin is not static

on the following statement:

XSDPlugin.getString
("_UI_DiagnosticFileLineColumn_message",
new Object []
{
localizedSeverity,
xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
*/getLocationURI/*}*/(),
new Integer(xsdDiagnostic./*{@link
XSDDiagnostic#getLine */getLine/*}*/()),
new Integer(xsdDiagnostic./*{@link
XSDDiagnostic#getColumn */getColumn/*}*/())
}));

in XSDPrototypicalSchema.java

Should I be using an earlier release of emf?

Thanks,
Andy
Re: XSDPrototypicalSchema and classpath [message #9619 is a reply to message #9474] Fri, 24 January 2003 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------0D4238572DE60F0835D31306
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Andy,

There have been some changes in EMF. If you look in the latest version of
XSDPrototypicalSchema you'll see that it's now expressed as:

XSDPlugin.INSTANCE.getString...

Andy Yang wrote:

> Hi All,
>
> I'm trying to run the sample code that came with the article "Analyze
> Schemas with the XML Schema Infoset Model" by Shane Curcuru.
>
> I've downloaded the xsd and emf distributions from eclipse.org and set
> them up as external jar files from WSAD 5. I've put the following jars
> in my build path:
>
> org.eclipse.emf.common_1.0.1\runtime\common.jar
> org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
> org.eclipse.xsd_1.0.1\runtime\xsd.jar
>
> but I'm getting the following compile error:
>
> The method getString(java.lang.String) from the type
> org.eclipse.emf.common.EMFPlugin is not static
>
> on the following statement:
>
> XSDPlugin.getString
> ("_UI_DiagnosticFileLineColumn_message",
> new Object []
> {
> localizedSeverity,
> xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
> */getLocationURI/*}*/(),
> new Integer(xsdDiagnostic./*{@link
> XSDDiagnostic#getLine */getLine/*}*/()),
> new Integer(xsdDiagnostic./*{@link
> XSDDiagnostic#getColumn */getColumn/*}*/())
> }));
>
> in XSDPrototypicalSchema.java
>
> Should I be using an earlier release of emf?
>
> Thanks,
> Andy

--
Ed Merks


--------------0D4238572DE60F0835D31306
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Andy,
<p>There have been some changes in EMF.&nbsp; If you look in the latest
version of XSDPrototypicalSchema you'll see that it's now expressed as:
<blockquote>XSDPlugin<b>.INSTANCE.</b>getString...</blockquote >

<p><br>Andy Yang wrote:
<blockquote TYPE=CITE>Hi All,
<p>I'm trying to run the sample code that came with the article "Analyze
<br>Schemas with the XML Schema Infoset Model" by Shane Curcuru.
<p>I've downloaded the xsd and emf distributions from eclipse.org and set
<br>them up as external jar files from WSAD 5. I've put the following jars
<br>in my build path:
<p>org.eclipse.emf.common_1.0.1\runtime\common.jar
<br>org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
<br>org.eclipse.xsd_1.0.1\runtime\xsd.jar
<p>but I'm getting the following compile error:
<p>The method getString(java.lang.String) from the type
<br>org.eclipse.emf.common.EMFPlugin is not static
<p>on the following statement:
<p>XSDPlugin.getString
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
("_UI_DiagnosticFileLineColumn_message",
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
new Object []
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
localizedSeverity,
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
<br>*/getLocationURI/*}*/(),
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
new Integer(xsdDiagnostic./*{@link
<br>XSDDiagnostic#getLine */getLine/*}*/()),
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
new Integer(xsdDiagnostic./*{@link
<br>XSDDiagnostic#getColumn */getColumn/*}*/())
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}));
<p>in XSDPrototypicalSchema.java
<p>Should I be using an earlier release of emf?
<p>Thanks,
<br>Andy</blockquote>

<p>--
<br>Ed Merks
<br>&nbsp;</html>

--------------0D4238572DE60F0835D31306--
Re: XSDPrototypicalSchema and classpath [message #9705 is a reply to message #9619] Mon, 03 February 2003 21:03 Go to previous message
Andy Yang is currently offline Andy YangFriend
Messages: 42
Registered: July 2009
Member
Thanks, that cleared things up.

Andy


Ed Merks wrote:
> Andy,
>
> There have been some changes in EMF. If you look in the latest version
> of XSDPrototypicalSchema you'll see that it's now expressed as:
>
> XSDPlugin*.INSTANCE.*getString...
>
>
> Andy Yang wrote:
>
>> Hi All,
>>
>> I'm trying to run the sample code that came with the article "Analyze
>> Schemas with the XML Schema Infoset Model" by Shane Curcuru.
>>
>> I've downloaded the xsd and emf distributions from eclipse.org and set
>> them up as external jar files from WSAD 5. I've put the following jars
>> in my build path:
>>
>> org.eclipse.emf.common_1.0.1\runtime\common.jar
>> org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
>> org.eclipse.xsd_1.0.1\runtime\xsd.jar
>>
>> but I'm getting the following compile error:
>>
>> The method getString(java.lang.String) from the type
>> org.eclipse.emf.common.EMFPlugin is not static
>>
>> on the following statement:
>>
>> XSDPlugin.getString
>> ("_UI_DiagnosticFileLineColumn_message",
>> new Object []
>> {
>> localizedSeverity,
>> xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
>> */getLocationURI/*}*/(),
>> new Integer(xsdDiagnostic./*{@link
>> XSDDiagnostic#getLine */getLine/*}*/()),
>> new Integer(xsdDiagnostic./*{@link
>> XSDDiagnostic#getColumn */getColumn/*}*/())
>> }));
>>
>> in XSDPrototypicalSchema.java
>>
>> Should I be using an earlier release of emf?
>>
>> Thanks,
>> Andy
>>
> --
> Ed Merks
>
>
Re: XSDPrototypicalSchema and classpath [message #564934 is a reply to message #9474] Fri, 24 January 2003 12:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
--------------0D4238572DE60F0835D31306
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Andy,

There have been some changes in EMF. If you look in the latest version of
XSDPrototypicalSchema you'll see that it's now expressed as:

XSDPlugin.INSTANCE.getString...

Andy Yang wrote:

> Hi All,
>
> I'm trying to run the sample code that came with the article "Analyze
> Schemas with the XML Schema Infoset Model" by Shane Curcuru.
>
> I've downloaded the xsd and emf distributions from eclipse.org and set
> them up as external jar files from WSAD 5. I've put the following jars
> in my build path:
>
> org.eclipse.emf.common_1.0.1\runtime\common.jar
> org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
> org.eclipse.xsd_1.0.1\runtime\xsd.jar
>
> but I'm getting the following compile error:
>
> The method getString(java.lang.String) from the type
> org.eclipse.emf.common.EMFPlugin is not static
>
> on the following statement:
>
> XSDPlugin.getString
> ("_UI_DiagnosticFileLineColumn_message",
> new Object []
> {
> localizedSeverity,
> xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
> */getLocationURI/*}*/(),
> new Integer(xsdDiagnostic./*{@link
> XSDDiagnostic#getLine */getLine/*}*/()),
> new Integer(xsdDiagnostic./*{@link
> XSDDiagnostic#getColumn */getColumn/*}*/())
> }));
>
> in XSDPrototypicalSchema.java
>
> Should I be using an earlier release of emf?
>
> Thanks,
> Andy

--
Ed Merks


--------------0D4238572DE60F0835D31306
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Andy,
<p>There have been some changes in EMF.&nbsp; If you look in the latest
version of XSDPrototypicalSchema you'll see that it's now expressed as:
<blockquote>XSDPlugin<b>.INSTANCE.</b>getString...</blockquote >

<p><br>Andy Yang wrote:
<blockquote TYPE=CITE>Hi All,
<p>I'm trying to run the sample code that came with the article "Analyze
<br>Schemas with the XML Schema Infoset Model" by Shane Curcuru.
<p>I've downloaded the xsd and emf distributions from eclipse.org and set
<br>them up as external jar files from WSAD 5. I've put the following jars
<br>in my build path:
<p>org.eclipse.emf.common_1.0.1\runtime\common.jar
<br>org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
<br>org.eclipse.xsd_1.0.1\runtime\xsd.jar
<p>but I'm getting the following compile error:
<p>The method getString(java.lang.String) from the type
<br>org.eclipse.emf.common.EMFPlugin is not static
<p>on the following statement:
<p>XSDPlugin.getString
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
("_UI_DiagnosticFileLineColumn_message",
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
new Object []
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
localizedSeverity,
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
<br>*/getLocationURI/*}*/(),
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
new Integer(xsdDiagnostic./*{@link
<br>XSDDiagnostic#getLine */getLine/*}*/()),
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
new Integer(xsdDiagnostic./*{@link
<br>XSDDiagnostic#getColumn */getColumn/*}*/())
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}));
<p>in XSDPrototypicalSchema.java
<p>Should I be using an earlier release of emf?
<p>Thanks,
<br>Andy</blockquote>

<p>--
<br>Ed Merks
<br>&nbsp;</html>

--------------0D4238572DE60F0835D31306--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XSDPrototypicalSchema and classpath [message #565032 is a reply to message #9619] Mon, 03 February 2003 21:03 Go to previous message
Andy Yang is currently offline Andy YangFriend
Messages: 42
Registered: July 2009
Member
Thanks, that cleared things up.

Andy


Ed Merks wrote:
> Andy,
>
> There have been some changes in EMF. If you look in the latest version
> of XSDPrototypicalSchema you'll see that it's now expressed as:
>
> XSDPlugin*.INSTANCE.*getString...
>
>
> Andy Yang wrote:
>
>> Hi All,
>>
>> I'm trying to run the sample code that came with the article "Analyze
>> Schemas with the XML Schema Infoset Model" by Shane Curcuru.
>>
>> I've downloaded the xsd and emf distributions from eclipse.org and set
>> them up as external jar files from WSAD 5. I've put the following jars
>> in my build path:
>>
>> org.eclipse.emf.common_1.0.1\runtime\common.jar
>> org.eclipse.emf.ecore_1.0.1\runtime\ecore.jar
>> org.eclipse.xsd_1.0.1\runtime\xsd.jar
>>
>> but I'm getting the following compile error:
>>
>> The method getString(java.lang.String) from the type
>> org.eclipse.emf.common.EMFPlugin is not static
>>
>> on the following statement:
>>
>> XSDPlugin.getString
>> ("_UI_DiagnosticFileLineColumn_message",
>> new Object []
>> {
>> localizedSeverity,
>> xsdDiagnostic./*{@link XSDDiagnostic#getLocationURI
>> */getLocationURI/*}*/(),
>> new Integer(xsdDiagnostic./*{@link
>> XSDDiagnostic#getLine */getLine/*}*/()),
>> new Integer(xsdDiagnostic./*{@link
>> XSDDiagnostic#getColumn */getColumn/*}*/())
>> }));
>>
>> in XSDPrototypicalSchema.java
>>
>> Should I be using an earlier release of emf?
>>
>> Thanks,
>> Andy
>>
> --
> Ed Merks
>
>
Previous Topic:xerces version
Next Topic:XSD as XML editor?
Goto Forum:
  


Current Time: Fri Mar 29 14:59:48 GMT 2024

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

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

Back to the top