Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [EMF Compare] Problem starting EMF Compare Standalone
[EMF Compare] Problem starting EMF Compare Standalone [message #622987] |
Mon, 07 June 2010 17:47 |
Eclipse User |
|
|
|
Originally posted by: mdsamh.yahoo.com
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01CB0671.DEE594D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I am new to EMF and EMF Compare and would like to get started by running =
the standalone example. I have looked into previous posted messages =
about problems getting this program to run such as =
http://www.eclipse.org/forums/index.php?t=3Dmsg&goto=3D4 91904&#msg_491904=
but could not find a solution to the problem I have. I would =
appreciate any hints or advice.
=20
Basically, I defined an (ecore) metamodel, (xmi) source and target =
models both conforming to the same metamodel. Comparing these two =
models by hand using Compare UI in Eclipse gives correct results. =
However, running EMF Compare standalone program gives me an error: =
Package with uri 'http://simpleMeta/2.0' not found. =
(file:/C:/tmp/sm1.xmi, 8, 18)
=20
This is the top part of my metamodel (in ecore):
=20
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<ecore:EPackage xmi:version=3D"2.0"
xmlns:xmi=3D"http://www.omg.org/XMI" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore" =
name=3D"simpleMeta"
nsURI=3D"http://simpleMeta/2.0" nsPrefix=3D"myPrefix">
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"SimpleModel">
=20
I have used 'Create Dynamic Instance' option to create a source and a =
target models (in xmi). Basically, the source model has a root class =
SimpleModel and 3 other classes : ClsA, ClsB and ClsC. Each linked to =
SimpleModel through containment relation. Each class also has a name =
attribute and ClsA, in addition, has a refAAttribute that references =
ClsB. My target model is exactly the same with ClsC deleted=20
=20
This is my source model:
<?xml version=3D"1.0" encoding=3D"ASCII"?>
<myPrefix:SimpleModel xmi:version=3D"2.0"=20
xmlns:xmi=3D"http://www.omg.org/XMI"=20
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=20
xmlns:myPrefix=3D"http://simpleMeta/2.0"=20
xsi:schemaLocation=3D"http://simpleMeta/2.0=20
E:/ECLIPSE_/WS_eclipse_galilio/mas.emf.test.compare1/models/ simpleMeta.ec=
ore"=20
SMName=3D"simple1">
<aes CAName=3D"c1" refA=3D"//@bes.1"/>
<bes CBName=3D"b1"/>
<bes CBName=3D"b2"/>
<ces CCName=3D"c1"/>
</myPrefix:SimpleModel>
=20
This is my target model:
<?xml version=3D"1.0" encoding=3D"ASCII"?>
<myPrefix:SimpleModel xmi:version=3D"2.0" =
xmlns:xmi=3D"http://www.omg.org/XMI" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
xmlns:myPrefix=3D"http://simpleMeta/2.0" =
xsi:schemaLocation=3D"http://simpleMeta/2.0 =
E:/ECLIPSE_/WS_eclipse_galilio/mas.emf.test.compare1/models/ simpleMeta.ec=
ore" SMName=3D"simple1">
<aes CAName=3D"c1" refA=3D"//@bes.1"/>
<bes CBName=3D"b1"/>
<bes CBName=3D"b2"/>
</myPrefix:SimpleModel>
=20
This is how I registered xmi resource factory in the program:
=20
resourceSet1.getResourceFactoryRegistry().getExtensionToFact oryMap().put(=
"xmi", new XMIResourceFactoryImpl());
resourceSet2.getResourceFactoryRegistry().getExtensionToFact oryMap().put(=
"xmi", new XMIResourceFactoryImpl());
=20
EcoreFactory ecoreFactory =3D EcoreFactory.eINSTANCE;
EPackage simpleMeta =3D ecoreFactory.createEPackage();
simpleMeta.setName("simpleMeta");
simpleMeta.setNsURI("http://simpleMeta/2.0");
Registry.INSTANCE.put("simpleMeta",simpleMeta);
=20
resourceSet1.getPackageRegistry().put("simpleMeta",simpleMeta);
resourceSet2.getPackageRegistry().put("simpleMeta",simpleMeta);
=20
In debug mode, I can see that the error happens at this step :=20
=20
final EObject model1 =3D ModelUtils.load(new File(args[0]), =
resourceSet1);
=20
Sorry for this beginner question. Any help or advice is highly =
appreciated.
Thanks in advance,
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
------=_NextPart_000_0006_01CB0671.DEE594D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal =
align=3Dleft><?xml:namespace prefix=20
=3D o ns =3D "urn:schemas-microsoft-com:office:office" /><o:p><FONT =
size=3D2=20
face=3DArial>Hi,</FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal =
align=3Dleft><o:p><FONT size=3D2=20
face=3DArial></FONT></o:p> </P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal align=3Dleft><FONT =
size=3D2=20
face=3DArial>I am new to EMF and EMF Compare and would like to get =
started by=20
running the standalone example.<SPAN style=3D"mso-spacerun: yes"> =
</SPAN>I=20
have looked into previous posted messages about problems getting this =
program to=20
run such as <SPAN style=3D"BACKGROUND: yellow; mso-highlight: =
yellow"><FONT=20
style=3D"BACKGROUND-COLOR: #ffffff"><A=20
href=3D"http://www.eclipse.org/forums/index.php?t=3Dmsg&goto=3D491904=
&#msg_491904">http://www.eclipse.org/forums/index.php?t=3Dmsg&got=
o=3D491904&#msg_491904</FONT></A></SPAN> but=20
could not find a solution to the problem I have.<SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>I would appreciate any hints =
or=20
advice.</FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal =
align=3Dleft><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal align=3Dleft><FONT =
size=3D2><FONT=20
face=3DArial>Basically, I defined an (ecore) metamodel, (xmi) source and =
target=20
models both conforming to the same metamodel.<SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>Comparing these two models by =
hand using=20
Compare UI in Eclipse gives correct results. <SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>However, running EMF Compare =
standalone=20
program gives me an error: <SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">Package with uri=20
'http://simpleMeta/2.0' not found. (file:/C:/tmp/sm1.xmi, 8,=20
18)</SPAN></FONT></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal =
align=3Dleft><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal align=3Dleft><FONT =
size=3D2=20
face=3DArial>This is the top part of my metamodel (in ecore):</FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><FONT=20
face=3DArial><?<SPAN style=3D"COLOR: black">xml</SPAN> =
version=3D"1.0"=20
encoding=3D"UTF-8"?><o:p></o:p></FONT></SPAN></P >
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><FONT=20
face=3DArial><ecore:EPackage =
xmi:version=3D"2.0"<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><FONT=20
face=3DArial><SPAN style=3D"mso-spacerun: yes"> =20
</SPAN>xmlns:xmi=3D"http://www.omg.org/XMI"=20
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"<o:p></o:p></FONT>=
</SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><FONT=20
face=3DArial><SPAN style=3D"mso-spacerun: yes"> =20
</SPAN>xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore"=20
name=3D"simpleMeta"<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><FONT=20
face=3DArial><SPAN style=3D"mso-spacerun: yes"> =20
</SPAN>nsURI=3D"http://simpleMeta/2.0"=20
nsPrefix=3D"myPrefix"><o:p></o:p></FONT></SPAN> </P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT =
face=3DArial><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN><eClassifiers =
xsi:type=3D"ecore:EClass"=20
name=3D"SimpleModel"></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT size=3D2 =
face=3DArial>I have=20
used =91Create Dynamic Instance=92 option to create a source and a =
target models (in=20
xmi). <SPAN style=3D"mso-spacerun: yes"> </SPAN>Basically, the =
source model=20
has a root class SimpleModel and 3 other classes : ClsA, ClsB and =
ClsC.<SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>Each linked to SimpleModel =
through=20
containment relation.<SPAN style=3D"mso-spacerun: yes"> =
</SPAN>Each class=20
also has a name attribute and ClsA, in addition, has a refAAttribute =
that=20
references ClsB. My target model is exactly the same with ClsC deleted=20
</FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT size=3D2 =
face=3DArial>This is=20
my source model:</FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><?xml version=3D"1.0"=20
encoding=3D"ASCII"?><o:p></o:p></FONT></SPAN></P >
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><myPrefix:SimpleModel =
xmi:version=3D"2.0"=20
<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial>xmlns:xmi=3D"http://www.omg.org/XMI"=20
<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT=20
face=3DArial>xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=20
<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial>xmlns:myPrefix=3D"http://simpleMeta/2.0" =
<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT =
face=3DArial>xsi:schemaLocation=3D"http://simpleMeta/2.0=20
<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT=20
face=3DArial> E:/ECLIPSE_/WS_eclipse_galilio/mas.emf.test.compare1/models/ =
simpleMeta.ecore"=20
<o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT =
face=3DArial>SMName=3D"simple1"><o:p></o:p></FONT ></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><aes CAName=3D"c1" =
refA=3D"//@bes.1"/><o:p></o:p></FONT></SPAN></P >
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><bes CBName=3D"b1"/><o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><bes CBName=3D"b2"/><o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><ces CCName=3D"c1"/><o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT=20
face=3DArial></myPrefix:SimpleModel><o:p></o:p ></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><o:p><FONT face=3DArial></FONT></o:p></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><o:p><FONT face=3DArial> </FONT></o:p></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT size=3D2 =
face=3DArial>This is=20
my target model:</FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><o:p><FONT face=3DArial></FONT></o:p></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><?xml version=3D"1.0"=20
encoding=3D"ASCII"?><o:p></o:p></FONT></SPAN></P >
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><myPrefix:SimpleModel =
xmi:version=3D"2.0"=20
xmlns:xmi=3D"http://www.omg.org/XMI"=20
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=20
xmlns:myPrefix=3D"http://simpleMeta/2.0" =
xsi:schemaLocation=3D"http://simpleMeta/2.0=20
E:/ECLIPSE_/WS_eclipse_galilio/mas.emf.test.compare1/models/ simpleMeta.ec=
ore"=20
SMName=3D"simple1"><o:p></o:p></FONT></SPAN></P >
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><aes CAName=3D"c1" =
refA=3D"//@bes.1"/><o:p></o:p></FONT></SPAN></P >
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><bes CBName=3D"b1"/><o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT face=3DArial><SPAN style=3D"mso-spacerun: yes"> =
</SPAN><bes CBName=3D"b2"/><o:p></o:p></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: =
EN-GB"=20
lang=3DEN-GB><FONT=20
face=3DArial></myPrefix:SimpleModel><o:p></o:p ></FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT size=3D2 =
face=3DArial>This is=20
how I registered xmi resource factory in the program:</FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"> resourceSet1.getResourceFactoryRegistry().getExtensionToFact oryMap(=
).put(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"xmi"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">, =
</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #7f0055; FONT-SIZE: =
10pt">new</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">=20
XMIResourceFactoryImpl());</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><o:p><FONT=20
face=3DArial></FONT></o:p></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT =
face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"> resourceSet2.getResourceFactoryRegistry().getExtensionToFact oryMap(=
).put(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"xmi"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">, =
</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #7f0055; FONT-SIZE: =
10pt">new</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">=20
XMIResourceFactoryImpl());<o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><o:p><FONT=20
face=3DArial> </FONT></o:p></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">EcoreFactory=20
ecoreFactory =3D EcoreFactory.</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #0000c0; FONT-SIZE: =
10pt">eINSTANCE</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">;</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">EPackage=20
simpleMeta =3D ecoreFactory.createEPackage();</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">simpleMeta.setName(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"simpleMeta"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">);</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">simpleMeta.setNsURI(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"http://simpleMeta/2.0"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">);</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">Registry.</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #0000c0; FONT-SIZE: =
10pt">INSTANCE</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">.put(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"simpleMeta"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">,simpleMeta);</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><SPAN=20
style=3D"mso-tab-count: =
3"> &nbs=
p; =20
</SPAN></SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">resourceSet1.getPackageRegistry().put(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"simpleMeta"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">,simpleMeta);</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"=20
class=3DMsoNormal><FONT face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">resourceSet2.getPackageRegistry().put(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #2a00ff; FONT-SIZE: =
10pt">"simpleMeta"</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt">,simpleMeta);</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><SPAN=20
style=3D"mso-tab-count: 3"><FONT=20
face=3DArial> =
=20
</FONT></SPAN></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT size=3D2 =
face=3DArial>In debug=20
mode, I can see that the error happens at this step : </FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><FONT =
face=3DArial><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #7f0055; FONT-SIZE: =
10pt">final</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> =
EObject=20
model1 =3D ModelUtils.load(</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: #7f0055; FONT-SIZE: =
10pt">new</SPAN><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">=20
File(args[0]), resourceSet1);<o:p></o:p></SPAN></FONT></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><o:p><FONT=20
face=3DArial> </FONT></o:p></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><FONT=20
face=3DArial>Sorry for this beginner question.<SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>Any help or advice is highly=20
appreciated.</FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><FONT size=3D2=20
face=3DArial></FONT></SPAN> </P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: =
10pt"><FONT=20
face=3DArial>Thanks in advance,</FONT></SPAN></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P></DIV>
<DIV style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2 =
face=3DArial> </FONT></o:p></DIV>
<DIV>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><SPAN=20
style=3D"mso-spacerun: yes"><FONT size=3D2 =
face=3DArial></FONT></SPAN> </P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P>
<P style=3D"MARGIN: 0in 0in 0pt" class=3DMsoNormal><o:p><FONT size=3D2=20
face=3DArial> </FONT></o:p></P></DIV></BODY></HTML >
------=_NextPart_000_0006_01CB0671.DEE594D0--
|
|
|
Goto Forum:
Current Time: Wed Sep 25 00:42:17 GMT 2024
Powered by FUDForum. Page generated in 0.12882 seconds
|