Copy of generated model [message #431499] |
Tue, 14 July 2009 10:01 |
|
This is a multi-part message in MIME format.
--------------060506030504000206060800
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
Hi,
I copied a generated model:
| EPackage model1 = (EPackage)EcoreUtil.copy(getModel1Package());|
Can I expect that the resulting EPackage instance is dynamic and
equivalent to directly loading the original model1.ecore file?
There is an EEnum in this EPackage and I discovered that after copying
the package the enum literals return genrated instances from
literal.getInstance(). Is that a bug or a feature?
Cheers
/Eike
----
http://thegordian.blogspot.com
http://twitter.com/eikestepper
--------------060506030504000206060800
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I copied a generated model:<br>
<br>
<title></title>
<style type="text/css">
<!--code { font-family: Courier New, Courier; font-size: 10pt; margin: 0px; }-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ======================================================== -->
<!-- = Java Sourcecode to HTML automatically converted code = --><!-- = Java2Html Converter 5.0 [2006-02-26] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<div class="java" align="left">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<!-- start source code --> <td align="left" nowrap="nowrap"
valign="top"> <code><font color="#ffffff">
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03538 seconds