The three phases shown in the picture below describe how to create a new Target Application.
|
Name
|
Setting the name of a Target Application. In most cases, this attribute contains the name of the targeted MBE. |
|
Root Project Name
|
Providing a project name namespace to initialize the viewpoint root project name configuration attribute. End-users can customize this value in the viewpoint specification files (*.conf.vptext or *.vpdesc). This attribute value must respect all rules related to the Eclipse platform project naming.
The Viewpoint generation uses the root project name to define each generated project name. For example, the project wherein the Sirius diagrams are generated is named as: [root project name].design.
|
|
Class
|
Providing an implementation of
org.polarsys.kitalpha.ad.ta.extension.ITargetApplication Java interface. This class provides to the viewpoint generation the following information:
- A List of EClasses to use as super classes for each generated EClass.
- Defaults generations used each time a viewpoint is generated (exp: EMF Generation)
|
|
Root NsUri
|
Providing an NsUri namespace to use in the generated Ecore models. The format of NsUris of any generated ecore is: [Root NsUri].[Viewpoint short name]. |
|
Description
|
Providing a short description of the Target Application.. |
|
Description
|
Contributions provide a generation that is available only for one Target Application by:
- Declaring the generation as un extension to the Viewpoint Core generation (using
Launcher element)
- Binding the generation with an existing Target Application (using a
Filter element)
|
|
Launcher
|
Name
|
Setting a name for the generation, it will be displayed in the “Generation with selection” wizard. |
|
Fcore
|
Referencing the EGF activity that represent the root element of the generation. The Fcore
attribute value must follows the following format:
platform:/plugin/[Plugin ID]/[Folder]/[File name].fcore#[Activity ID]
|
|
Category
|
Generation categories are used to differentiate generations. Two categories are defined:
-
Aspect: generations are sensitive to the viewpoint specification. In general, they are related to a viewpoint Aspect. The result of these generations vary according to viewpoints
-
Addition: generations aren’t sensitive to the viewpoint specification. In the most cases, this kind of generation can uses some viewpoint data like configuration attributes or viewpoint name/short name but not more. The result doesn’t vary from a viewpoint to another.
|
|
Description
|
Setting a short description for a generation, it will be displayed in the “Generation with selection” wizard. |
|
Filter
|
TargetApplication
|
Selecting the Target Application with which the generation is associated. The current generation will not be visible for the other generations. |
|
Java
|
Providing a Java implementation of a filter that activate/deactivate a generation depending on the generation context.
A Java filter must implements IExtensionFilter java interface (see previous page). It can inherits from AbstractAspectExtensionFilter Java abstract class (see previous page).
|