Webbläsaren som du använder stöds inte av denna webbplats. Alla versioner av Internet Explorer stöds inte längre, av oss eller Microsoft (läs mer här: * https://www.microsoft.com/en-us/microsoft-365/windows/end-of-ie-support).

Var god och använd en modern webbläsare för att ta del av denna webbplats, som t.ex. nyaste versioner av Edge, Chrome, Firefox eller Safari osv.

Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting

Författare

  • 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.

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

Ämne

  • Control Engineering

Nyckelord

  • 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

Projekt

  • LCCC

Forskningsgrupp

  • LCCC

ISBN/ISSN/Övrigt

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