section: < previous | next > | | | |
chapter: << previous | next >> |
Layout
The VOCLEditor is a multi-page- editor, that contains in our case only one namely VOCLPage.java. The class design the appearance of the page. It implements in the method createPageControl (Composite parent). The main components of the side are: CreationPalette, is to be on the left side, and GraphicalView, right of CreationPalette. As we use GEF technology, our GUI-objects are EditParts. You find it in the package “vocleditor.edit”. |
The structure is similar to the VOCLModel4, which is agreed upon by GEF also. The class GraphicalEditPartsFactory.java produces for an object from the VOCLModel4 exactly one EditPart (ex. ClassifierRole - > ClassifierRoleEditPart). This Factory is registered in GraphicalView. The functionality of the individual EditParts is described in the GEF manual. |
section: < previous | next > | | | |
chapter: << previous | next >> |