eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[ui] Provide Complete OCL Merge/Split UI #1738

Open eclipse-ocl-bot opened 2 days ago

eclipse-ocl-bot commented 2 days ago

| --- | --- | | Bugzilla Link | 500551 | | Status | NEW | | Importance | P3 normal | | Reported | Aug 31, 2016 01:16 EDT | | Modified | Oct 08, 2019 07:22 EDT | | Depends on | 551915, 465326 | | See also | 500519, 500520, 500521 | | Reporter | Ed Willink |

Description

Complete OCL mergers/splitters exist but are inaccessible to users. Provide a UI.

In an Ecore / UML model, provide "OCL->Export...", "OCL->Merge...", "OCL->Remove..." dialog, perhaps with a per-declaration check box.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Oct 14, 2016 07:19

See Bug 412341 and Bug 465326.

The Complete OCL Merger needs some careful though to ensure it actually does what is wanted - ignoring unwanted implicit property support.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Sep 09, 2017 13:13

The new OCL->Export Document menu entry for M2, supports export from .uml/.ecore/*.oclinecore editors. CompleteOCLSplitter is not needed since AS2CS can make direct read--only use of the relevant AS model. Many issues with imports fixed along the way.

OCL->Merge still to do. Probably needs separate code for Ecore/UML since AS2UML does not exist and we don't really want to regenerate the UML/Ecore in a native editor.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Sep 09, 2017 13:19

Bug 512426 has been marked as a duplicate of this bug.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Sep 09, 2017 13:50

Bug 370658 has been marked as a duplicate of this bug.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Sep 14, 2017 10:25

OCL->Export Document pushed to master for M2.

OCL->Merge Document still to do.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Dec 01, 2017 12:38

Bug 364651 has been marked as a duplicate of this bug.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Dec 01, 2017 12:45

(In reply to Ed Willink from comment #5)

OCL->Merge Document still to do.

AS+AS2AS is fairly easy and fairly useless UI-wise since we do not encourage AS editing.

Most obvious is Sample Ecore Editor where the user edits ES with a hidden AS for the Complete OCL. We could offer a new Save for the prevailing ES+AS but the editor naturally adopts the saved name. Probably the user just wants to see an ES2ES edit action in which we actually combine Ecore2AS + CompleteOCL2AS followed by an AS2Ecore refresh. This requires AS2Ecore refresh to be fully functional. Aaargh! and it probably wouldn't be undo-able. Solution may be an independent AS2Ecore so that a mega-SetComand describes all the edits that occur.

Same approach for UML Editor once there is an AS2UML.

Complete OCL contributions to e.g. OclElement are awkward to merge. Perhaps we just ignore the problems and merrily inflict the OCL multi-package on the Ecore.\ See Bug 500519, Bug 500520, Bug 500521.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Jan 09, 2019 10:14

(In reply to Ed Willink from comment #5)

OCL->Export Document pushed to master for M2.

Documentation still to do.

https://www.eclipse.org/forums/index.php/t/1096977/ identifies a CompleteOCL break-up use case. Perhaps an export from line selection, and/or export from declarations selected by check-box could be provided.

eclipse-ocl-bot commented 2 days ago

By Ed Willink on Oct 08, 2019 07:22

Bug 551915 suggests that this functionalkity is not fully correct.