OCL/New and Noteworthy/Indigo
Eclipse OCL New and Noteworthy items for the Indigo 3.1.0 release.
- 322159 Diagnose and workaround genmodel without Operation Reflection.
- 318119 Save no longer flashes XMI.
- 320689 Enum and DataType now conform to OclAny so that e.g. oclIsInvalid is no longer undefined.
- 321171 Reference opposite is now resolvable when the type is qualified.
- 321493 Unicode characters supported in annotations.
- 321518 Multi-line annotations supported.
- 321903 Supertype is now resolvable when qualified.
- 322675 OCLinEcore menu items now localized to OCLinEcore.
- 322886 CompleteOCL genmodel registration now findable.
- 330489 Fix content of singleton CollectionRange.
EMF 2.7.0 is a prerequisite as from M4.
- 331143 Support Query delegates.
The migration to the new architecture starts with M5, with a slightly early release mandated by alignment with Xtext 2.0 that becomes available at M5. Without migration, all the editors would be broken, with migration the OCLstdlib and OCLinEcore editors should be improved, although the CompleteOCL editor is temporarily broken. The new architecture features:
- a model-defined library defined by OCL-2.4.oclstdlib
- a pre-compiled version org.eclipse.ocl.examples.library.oclstdlib.OCLstdlib autogenerated by Acceleo
- an intermediate UML-aligned pivot model
- semantic as well as semantic validation in OCLstdlib and OCLinEcore (and EssentialOCL) editors
- a stream-lined evaluator aligned to the pivot model and library definition
The new functionality is used automatically when using the editors.
The new functionality may be used programmatically by changing org.eclipse.ocl.ecore to org.eclipse.ocl.examples.pivot. This is only recommended to enthusiasts at present since the migration guide on detailed API evolution is not yet written.
The migration will continue in 3.1.0 Examples M6, M7 with
- CompleteOCL editor
- Use of EssentialOCL editor in the Interactive Console
- Support for UML
The migration will complete in 4.0 with
- promotion of org.eclipse.ocl.examples.pivot to org.eclipse.ocl.pivot
- redirection of "http://www.eclipse.org/emf/2002/Ecore/OCL" to the new functionality
- introduction of OCL to Java code generation
- org.eclipse.ocl, org.eclipse.ocl.ecore, org.eclipse.ocl.uml will remain substantially unchanged
- 251621 Support EAnnotations of missing Ecore eOpposites.
- 333032 Tuning up the API and Impl introduced by Bug 251621.
- 333241 Minimize impact of DefaultOppositeEndFinder
- 332400 Avoid redundant helper creation.
- 329980 Use @nooverride to clarify API.
- 290605 BigInteger, BigDecimal used to ensure larger number compliance.
- 332962 Query Delegate Text Viewer for OCL.
- 329336 EventManager added as pre-requisite for impact analyzer
- 152207 Support toString.
- 196873 Introduce OCL standard library as a first class model.
- 246962 OrderedSet and Sequence operations shared via OrderedCollection.
- 259031 Support OclAny.oclType with reflection.
- 261008 UnlimitedNatural conforms to Integer.
- 281710 Support String +.
- 283052 Pivot model is UML-aligned.
- 290680 Collection conforms to OclAny.
- 291721 OclInvalid conforms to OclVoid and not-vice-versa.
- 299959 oclAsType conformance checked.
- 326534 Library model loaded from auto-generated code.