Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: errors while metamodeling
Re: errors while metamodeling [message #624547] Tue, 28 August 2007 12:32
Manar El-Kady is currently offline Manar El-KadyFriend
Messages: 78
Registered: July 2009
Member
Ed,

It is not clear for me. Could you illustrate it for me?

Manar,


Ed Merks wrote:
> --------------060109010005040605060000
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
> </head>
> <body bgcolor="#ffffff" text="#000000">
> Manar,<br>
> <br>
> I see.&nbsp; The build.properties doesn't include them in the binary
plugin,
> so I suppose the way you did it is the only way<br>
> <blockquote>bin.includes = about.html,\<br>
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
plugin.*,\<br>
>
&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;
model/*.ecore,\<br>
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
model/*.ecore2xml,\<br>
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
model/*.genmodel,\<br>
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
META-INF/<br>
> src.includes = about.html,\<br>
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
model/*.ecore2ecore,\<br>
>
<b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
model/*.uml,\</b><br>
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
templates/<br>
> exclude.. = **/doc-files/**<br>
> javacSource = 1.5<br>
> javacTarget = 1.5<br>
> </blockquote>
> I get those same warnings when I validate the instance I have directly
> from CVS, so I suppose those warnings are something to ignore.<br>
> <br>
> That still leaves your other questions unanswered, so someone with UML2
> expertise will need to answer those.&nbsp; Definitely change your "\"
to "/"
> though or you're likely to have problems.<br>
> <br>
> <br>
> Manar El-Kady wrote:
> <blockquote cite="mid:fac69v$dcj$1@build.eclipse.org" type="cite"><br>
> Ed Merks wrote:
> <br>
> <blockquote type="cite">Manar,
> <br>
> <br>
> Comments below.
> <br>
> <br>
> <br>
> Manar El-Kady wrote:
> <br>
> <blockquote type="cite">Hi,
> <br>
> <br>
> I build a metamodel as a heavyweight extension.I do the following
> steps:
> <br>
> - create an empty UML model
> <br>
> - convert the model to a metamodel
> <br>
> - apply the ecore profile, and then apply the epackage stereotype to
> the
> <br>
> root model element
> <br>
> - add some elements for the metamodel
> <br>
> - merge the primitive types package
> <br>
> - add the infrastructure.uml as a resource to my metamodel (Note: I
> added it by using the editor. I added it from a project in my workspace
> that containing
>
platform:/resource/org.eclipse.uml2.source\src\org.eclipse.u ml2.uml_2.1.0.v200706141134\model\Infrastructure.uml)
> <br>
> </blockquote>
> I think you should have loaded it using
> <br>
> <br>
> &nbsp;&nbsp;&nbsp;
platform:/plugin/org.eclipse.uml2.uml/model/Infrastructure.u ml
> <br>
> <br>
> </blockquote>
> <br>
> I did it but an error file not found raised
> <br>
> <br>
> I tried to add "/" after "platform:/" and the error
> " platform:/plugin/org.eclipse.uml2.uml/model/Infrastructure.u ml " showed
> <br>
> <br>
> I tried to add the name of the jar file that exist in my plugin folder
>
" platform:/plugin/org.eclipse.uml2.uml_2.1.0.v200706141134/mo del/Infrastructure.uml ",
> then a file not found error raised??
> <br>
> <br>
> <br>
> <blockquote type="cite">Don't ever use "\" in a URI since it's
> treated as just an ordinary character like "_" not like "/".
> <br>
> <blockquote type="cite">- While creating the elements of the
> metamodels I extended classes from the subpackages of the Abstractions
> package. So, I imported the packages that containing the classes which
> I extend.
> <br>
> - finally I apply the package merge, and convert it again to a
> metamodel.
> <br>
> <br>
> My questions are:
> <br>
> - After these steps I did a validation, and an error occur " Not all
> the members of a namespace'&lt;&lt;metamodel, ePackage&gt;&gt;
> &lt;Model&gt; MAS-UML' are distinguishable within it." ??
> <br>
> </blockquote>
> I'm not sure, but it sounds like you have multiple versions of the same
> model, which could be caused by the problem above where you load the
> model with one URI, there are other references to this model using a
> different URI.
> <br>
> <blockquote type="cite"><br>
> - I tried to do these steps without doing package import and I didn't
> notice any difference or errors happened. so, what is the need for
> doing a package import in a metamodeling?
> <br>
> <br>
> - After creating the metamodel I create an EMF project for code
> generation. Here, I obligated to generate code for the
> infrastructureLibrary package, which I didn't need. Why that?
> <br>
> </blockquote>
> In the final step of the wizard, you need to specify a GenModel for any
> packages that already exist and you don't want to generate yourself but
> rather want to reuse an existing generated model.
> <br>
> <blockquote type="cite"><br>
> - After the code generation, there are some errors in the generated
> code for the infrastructureLibrary package and for my metamodel code.
> all the errors in the impl files and said that xxx cannot be resolved??
> <br>
> </blockquote>
> I'm sure you'll need to specify a dependency on the UML2 model in the
> final step of the wizard if you are trying to extend that
model.&nbsp; Note
> that once the plugin.xml and MANIFEST.MF exist, they won't be
> regenerated unless you delete them, so even fixing the problems above
> won't fix these files unless you delete them before you generate.
> <br>
> <blockquote type="cite"><br>
> <br>
> Sorry for this long mail, and thanks in advance.
> <br>
> <br>
> Manar
> <br>
> <br>
> <br>
> &nbsp;&nbsp;&nbsp; <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> </blockquote>
> </blockquote>
> </blockquote>
> <br>
> </body>
> </html>
>
> --------------060109010005040605060000--
Previous Topic:Problem running uml2 api program
Next Topic:UML and multiple/diamond inheritance
Goto Forum:
  


Current Time: Wed Apr 24 18:44:21 GMT 2024

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

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

Back to the top