Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 289761

Summary: [editor] Migrate the M2M/QVT Declarative OCL Editor to MDT/OCL
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: adolfosbh, alexander.igdalov
Version: 1.3.0Keywords: plan
Target Milestone: 3.0.0   
Hardware: PC   
OS: Windows XP   
Whiteboard: Usability
Attachments:
Description Flags
Work in progress OCL in Ecore Editor none

Description Ed Willink CLA 2009-09-17 11:40:44 EDT
This thread started to avoid initial discussion on the desirability of this
migration clouding discussion of feature/plug-in reorganisation.

This thread continues where the mdt-ocl-dev: "MDT-OCL project organisation for add-ons (editor	etc)" thread left off.
---

It was agreed that in mprinciple it would be good to provide an OCL editor for Helios, and that the M2M/QVT Declarative OCL Editor was a promising candidate that unfortunately had undesirable incubation dependencies on IMP, LPG2 and SHRIKE.

I undertook to investigate replacing the IMP usage by direct SWT usage. This proved to be far from easy since IMP was offering many fairly minor facilities.

The LPG2 dependency is being addressed by Adolfo so that we expect LPG2 to be in Orbit shortly.

The IMP dependencies have simplified so that the org.eclipse.imp.runtime plugin no longer has any other dependencies not satisfied by the Galileo Modeling Package.

I therefore created a copy of IMP runtime so that M2M/QVT Declarative could redistribute an IMP runtime with patches. This avoids dependencies on IMP which has no plan to align with Helios milestones.

I therefore recommend migration of the M2M/QVT Declarative OCL Editor to
MDT/OCL.

I will post code if the team is happy with this proposal.
Comment 1 Adolfo Sanchez-Barbudo Herrera CLA 2009-09-17 12:19:24 EDT
So, the solution is copying the IMP runtime... I don't like too much the idea, but I guess that there is not any alternative...

I'll +1, but take into account that the LPG v2.0.18 should be copied when it comes up (I've just checked that it's not in sourceforge yet).

Another consideration could be addressing this bug in the experimental branch, so that it could be merged altoguether when LPG v2.0.18 appears (merging new plugins/packages should be trivial).

Cheers,
Adolfo.
Comment 2 Ed Willink CLA 2009-09-17 13:03:15 EDT
I don't like copying the runtime either, but it seems the least bad solution.

At the moment you're only +1'ing the principle of the editor migration.

It certainly won't be committed before a further round of +1's in this bug and not before LPG2.0.18 is in Orbit. If LPG2.0.18 does take a long time, then yes the experimental branch wiould be appropriate.
Comment 3 Ed Willink CLA 2010-03-07 16:26:04 EST
Created attachment 161244 [details]
Work in progress OCL in Ecore Editor

Attached is not yet ready for review, but may be of interest since it provides an OCL Document editor and an OCL in Ecore editor.

Prerequisites:

IMP Runtime 0.1.103 from IMP's SVN.
LPG 2.0.17 from Orbit
lpg.runtime from LPG's CVS (or correct IMP Runtime's dependency to lpg.runtime.java).
Comment 4 Ed Willink CLA 2010-03-11 10:40:23 EST
For better or worse, the editor and associated plugins are now in CVS HEAD under example/...

It should be possible to upgrade an existing:
Comment 5 Ed Willink CLA 2010-03-11 10:47:58 EST
Continuing:

It should be possible to upgrade an existing:

Platform + EMF + UML2 + OCL + Subclipse

installation by

using Import Project Set ... from org.eclipse.ocl/releng/psfs/examples.psf

examples.psf has a comment on getting Subclipse.

The PSF fetches the EMF Transaction and EMF Validation dependencies and IMP Runtime.

The lpg.runtime name confusion doesn't seem to matter when using project resources.

New->Project... Examples ... OCL offers the RoyalAndLoyal example.

---

Just need to beat out the bugs now and wait for IMP Runtime 0.1.104 on the Update Site.
Comment 6 Alexander Igdalov CLA 2010-05-27 15:25:30 EDT
Marking as CLOSED FIXED for Helios since MDT OCL has editor support in examples, though not IMP-based.
Comment 7 Ed Willink CLA 2011-05-27 02:54:23 EDT
Closing