Visual OCL

TU-Berlin | Faculty IV | Institute ISTI | Research group TFS

Model Driven Architecture - the controller with GEF

small logo
section: < previous | next >
| |
chapter: << previous | next >>

Overview

Der VOCL-Plugin consists of three parts: VOCLModel4, VOCLEditor4 and the VOCLConverter.

The VOCL-Plugin is a visual development environment for generation of the OCL. It is completely in the eclipse environment and can only be run in eclipse.

VOCLEditor uses GEF-technology. The basic model, which is important for GEF, is to be found in the VOCLModel4.

The package structure looks following:

Since the project is extensive and relies much on GEF, we will only describe the major classes.

The class VOCLEditor.java implements the interactions of the editor. It includes the CommandStack – controlling the Commands and provides undo and redo. The SelectionSynchronizer synchronizes the selection in different pages and other components(Outline, Property and others) of the editor. The registration of keybord commands is handled by the KeyHandler. At last the SelectionListener registers an action of the editor. 

The input of the editor in the class OCLModelManager.java administers, the class is in the package “vocleditor.model”. The class puts those to save and load methods at disposal. As our input file was wrote in the XMI format (see VOCLModel4), we use a component of the EMF-Plugin namely XMIResource.


  section: < previous | next >
| |
chapter: << previous | next >>
©2005 TFS