The browser you are using is not supported by this website. All versions of Internet Explorer are no longer supported, either by us or Microsoft (read more here: https://www.microsoft.com/en-us/microsoft-365/windows/end-of-ie-support).

Please use a modern browser to fully experience our website, such as the newest versions of Edge, Chrome, Firefox or Safari etc.

Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting

Author

  • Jon Sten
  • Tobias Mattsson
  • Tove Bergdahl
  • Jesper Mattsson
  • Johan Åkesson

Summary, in English

When an Integrated Development Environment (IDE) is developed, the support for multiple views of the same document is often essential. An example of this is Modelica models, as it should be possible to view and edit the same model in both its textual and graphical representation.



One implementation of Modelica is the open-source platform JModelica.org. It contains the JModelica.org IDE, that provides a text editor for Modelica code, based on the Eclipse platform.



In this paper, we present an implementation of a graphical editor for the JModelica.org IDE. Several challenges with implementing a graphical editor for Modelica are discussed. Among others, the difficulties in rendering Modelica diagrams and how to interact with existing frameworks in Eclipse are brought up.



A method for preserving the formatting of a modified source code file is also presented, which is essential when the model is altered in the graphical editor.

Publishing year

2012

Language

English

Pages

375-384

Publication/Series

Proceedings of the 9th International Modelica Conference

Document type

Conference paper

Publisher

The Modelica Association

Topic

  • Control Engineering

Keywords

  • AST
  • JModelica.org
  • Eclipse GEF Graphical Editing Icon Rendering Preserved File Formatting Pretty Printing

Conference name

9th International Modelica Conference

Conference date

2012-09-03

Conference place

Munich, Germany

Status

Published

Project

  • LCCC

Research group

  • LCCC

ISBN/ISSN/Other

  • ISBN: 978-91-7519-826-2