Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 50091 Details for
Bug 157176
UMLUtil.UML2EcoreConverter should regard user-specified values for EEnumLiterals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed fix
157176.patch (text/plain), 1.29 KB, created by
Kenn Hussey
on 2006-09-13 17:17:51 EDT
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Kenn Hussey
Created:
2006-09-13 17:17:51 EDT
Size:
1.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.uml2.uml >Index: src/org/eclipse/uml2/uml/util/UMLUtil.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.uml2/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/util/UMLUtil.java,v >retrieving revision 1.35.2.5 >diff -u -r1.35.2.5 UMLUtil.java >--- src/org/eclipse/uml2/uml/util/UMLUtil.java 8 Sep 2006 17:09:10 -0000 1.35.2.5 >+++ src/org/eclipse/uml2/uml/util/UMLUtil.java 13 Sep 2006 21:20:19 -0000 >@@ -2112,8 +2112,13 @@ > > setName(eEnumLiteral, enumerationLiteral); > >- eEnumLiteral.setValue(enumeration.getOwnedLiterals().indexOf( >- enumerationLiteral)); >+ try { >+ eEnumLiteral.setValue(enumerationLiteral.getSpecification() >+ .integerValue()); >+ } catch (Exception e) { >+ eEnumLiteral.setValue(enumeration.getOwnedLiterals() >+ .indexOf(enumerationLiteral)); >+ } > > defaultCase(enumerationLiteral); > >@@ -4721,6 +4726,9 @@ > enumeration.getOwnedLiterals().add(enumerationLiteral); > > enumerationLiteral.setName(eEnumLiteral.getName()); >+ ((LiteralInteger) enumerationLiteral.createSpecification(null, >+ null, UMLPackage.Literals.LITERAL_INTEGER)) >+ .setValue(eEnumLiteral.getValue()); > > defaultCase(eEnumLiteral); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 157176
: 50091