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

Bug 260641

Summary: [OCL] ocl.examples.interpreter: add page up/down history
Product: [Modeling] OCL Reporter: Nicolas Rouquette <nicolas.f.rouquette>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ed
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch for org.eclipse.emf.ocl.examples.interpreter.console.OCLConsolePage none

Description Nicolas Rouquette CLA 2009-01-11 15:32:34 EST
Created attachment 122211 [details]
Patch for org.eclipse.emf.ocl.examples.interpreter.console.OCLConsolePage

Build ID: 20090101-1511

Steps To Reproduce:
The current OCL interpreter example can save the last OCL expression. It would be nice to have a ring buffer history of the last N expressions and use the page up/down keys to flip through the history.


More information:
See patch for a suggested ocl history mechanism.
Comment 1 Christian Damus CLA 2009-01-11 18:09:40 EST
Hi, Nicolas,

Thanks for the contribution!  But, unfortunately, it is already obsoleted by work-in-progress on a completely revamped OCL example:  bug 259922.  Perhaps you would like to follow the progress of that enhancement, and even give the new example a whirl?  I'll post a preview, shortly.

In bug 259922, the history is superseded by an OCL environment browser:  every constraint/query that is parsed in the "console" is added to the environment currently selected in the browser, where it can be simply double-clicked at any time later to check/evaluate it (according to whether it is a constraint or a query) at will.

There will be lots to polish, which perhaps you could help with.  :-)
Comment 2 Ed Willink CLA 2009-12-01 02:34:42 EST
Nicolas: Apologies. I didn't find this till after committing 294200, which also contributes Page Up/Down. So until the new browser materialises the old one is at least a bit better.

*** This bug has been marked as a duplicate of bug 294200 ***