Javascript verkar inte påslaget? - Vissa delar av Lunds universitets webbplats fungerar inte optimalt utan javascript, kontrollera din webbläsares inställningar.
Du är här

Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting

  • Jon Sten
  • Tobias Mattsson
  • Tove Bergdahl
  • Jesper Mattsson
  • Johan Åkesson
Publiceringsår: 2012
Språk: Engelska
Sidor: 375-384
Publikation/Tidskrift/Serie: Proceedings of the 9th International Modelica Conference
Dokumenttyp: Konferensbidrag
Förlag: The Modelica Association


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 It contains the 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 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.


  • Control Engineering
  • AST
  • Eclipse GEF Graphical Editing Icon Rendering Preserved File Formatting Pretty Printing


9th International Modelica Conference
  • LCCC
  • LCCC-lup-obsolete
  • ISBN: 978-91-7519-826-2

Box 117, 221 00 LUND
Telefon 046-222 00 00 (växel)
Telefax 046-222 47 20
lu [at] lu [dot] se

Fakturaadress: Box 188, 221 00 LUND
Organisationsnummer: 202100-3211
Om webbplatsen