Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Papyrus/customizations/manufacturing/aas/jdt

< Papyrus‎ | customizations/manufacturing/aas
Revision as of 11:19, 6 December 2022 by Unnamed Poltroon (Talk) (JDT Integration)

JDT Integration

In order to edit the behavior of the submodel operations in CanvAAS, we have developed an integration functionality between CanvAAS modeling editors and the Eclipse Java development tools (JDT) . This integration is closely linked to the code generation and synchronization task. In fact, after defining a submodel operation, the user is able to specify the implementation of the operation in Java code. However, it is more intuitive for the user to edit the implementation of the operation in a JDT Editor and not directly in the model. Thus, the user can benefits from the completion and the automatic compilation of the java code provided by the JDT Editor.

In order to keep both possibilities of defining an implementation of a submodel operation (1) Directly in a Java Editor and (2) in the AAS model itself, AAS Designer offers the JDT synchronization functionality that consist in synchronizing this implementation in both direction from the model to the java code and from the java code to the model.

Editing operations code

After generating Basyx code from an AAS using the menu:

AAS -> Generate Basyx code, you can edit the JAVA code of submodel operations using the Eclipse JDT editor.

This java code, if edited, will update the AAS model content (operation's name and parameters) and will be stored inside the model.

To launch the JDT editor, right click on the operation in the model Explorer and click on Designer -> launch JDT editor:

AAS48.png

To be able to see the synchronisation between the JDT editor and the AAS Model content, make sure that the AAS model editor and the java file JDT editor are opened side by side as shown in the figure below.

It is possible to move the java file editor tab and place it side by side with the AAS Model editor in the editors zone.

AAS48 01.png

Back to the top