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

Bug 326896

Summary: [ast] Make Visitor extensible
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.0   
Target Milestone: M7   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2010-10-04 04:31:58 EDT
Visitor currently has a built-in set of per-type dispatches, which cannot be extended.

a) provide a default dispatch e.g. for OclAny that can be overridden by extension functionality.

b) provide an EcoreSwitch-based dispatch in the Visitor for service of this default.
Comment 1 Ed Willink CLA 2012-04-30 15:51:36 EDT
The visitors have been adjusted allowing QVTc and QVTr to extend.

The main adjustment justs supports direct inheritance rather than delegation; much simpler. For the rare case of a multiply inheriting language, a delegation can be performed by the multiply inheriting language.
Comment 2 Ed Willink CLA 2013-05-20 11:37:03 EDT
CLOSED after a year in the RESOLVED state.