Bug 161027 - Increase extensibility of OCL-related generated code in the ExpressionFactory and ElementTypes.Initializers
Summary: Increase extensibility of OCL-related generated code in the ExpressionFactory...
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-10-16 06:32 EDT by Michael Golubev CLA
Modified: 2010-07-19 22:19 EDT (History)
0 users

See Also:


Attachments
ElementTypes_IObjectInitializer (18.69 KB, patch)
2006-10-16 07:08 EDT, Radomil Dvorak CLA
no flags Details | Diff
OCLExpressionFactory_additions (28.22 KB, patch)
2006-10-16 07:09 EDT, Radomil Dvorak CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golubev CLA 2006-10-16 06:32:11 EDT
1. In the context of uML2 diagramming it is required to generate some custom code into the generated expression factor class. Actually the only way to do this is to replace the whole template OCLExpressionFactory.javajet. It would be really helpful if this template supports include fail="silent" directive.

2. Actually generated ElementTypes class contains inner static ObjectInitializer class that is specially designed to use in the context of OCL based evaluation. In the UML2 diaramming it is sometines required to write custom initialziation code that does not know about our OCL support. In this case extending of the not actually used super class seems to be error-prone. Instead it would be helpful to have just simple IObjectInitializer interface that encapsulates the whole initialziation code.
Comment 1 Radomil Dvorak CLA 2006-10-16 07:08:38 EDT
Created attachment 52023 [details]
ElementTypes_IObjectInitializer
Comment 2 Radomil Dvorak CLA 2006-10-16 07:09:21 EDT
Created attachment 52024 [details]
OCLExpressionFactory_additions
Comment 3 Radomil Dvorak CLA 2006-10-16 07:23:13 EDT
Reviewed and committed.
Comment 4 Richard Gronback CLA 2006-11-09 07:16:38 EST
Reopening to assign
Comment 5 Richard Gronback CLA 2006-11-09 07:20:12 EST
re-RESOLVING
Comment 6 Richard Gronback CLA 2008-08-13 13:10:30 EDT
[target cleanup] 2.0 M3 was the original target milestone for this bug
Comment 7 Eclipse Webmaster CLA 2010-07-19 22:19:47 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug