Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting

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

Research output: Chapter in Book/Report/Conference proceedingPaper in conference proceedingpeer-review

343 Downloads (Pure)

Abstract

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.
Original languageEnglish
Title of host publicationProceedings of the 9th International Modelica Conference
PublisherThe Modelica Association
Pages375-384
ISBN (Print)978-91-7519-826-2
DOIs
Publication statusPublished - 2012
Event9th International Modelica Conference - Munich, Germany
Duration: 2012 Sept 3 → …

Conference

Conference9th International Modelica Conference
Country/TerritoryGermany
CityMunich
Period2012/09/03 → …

Bibliographical note

key=ste+12mc
project=LCCC-modeling

Subject classification (UKÄ)

  • Control Engineering

Free keywords

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

Fingerprint

Dive into the research topics of 'Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting'. Together they form a unique fingerprint.
  • LCCC

    Holmqvist, A. (Researcher), Andersson, N. (Researcher), Cervin, A. (Researcher), Mannesson, A. (Researcher), Gattami, A. (Researcher), Ghulchak, A. (Researcher), Papadopoulos, A. V. (Researcher), Rantzer, A. (Researcher), Robertsson, A. (Researcher), Sootla, A. (Researcher), THEORIN, A. (Researcher), Bernhardsson, B. (Researcher), Olofsson, B. (Researcher), Wittenmark, B. (Researcher), Grussler, C. (Researcher), Johnsson, C. (Researcher), MADJIDIAN, D. (Researcher), Johannesson, E. (Researcher), Magnusson, F. (Researcher), Ståhl, F. (Researcher), Como, G. (Researcher), Chasparis, G. (Researcher), Turesson, G. (Researcher), Dressler, I. (Researcher), Åkesson, J. (Researcher), Cho, J. H. (Researcher), Årzén, K.-E. (Researcher), Åström, K. J. (Researcher), Sou, K. C. (Researcher), Mårtensson, K. (Researcher), Berntorp, K. (Researcher), Soltesz, K. (Researcher), Lessard, L. (Researcher), Hast, M. (Researcher), Rönn, M. (Researcher), Ansbjerg Kjær, M. (Researcher), Maggio, M. (Researcher), Kristalny, M. (Researcher), Garpinger, O. (Researcher), From, P. J. (Researcher), Larsson, P.-O. (Researcher), Giselsson, P. (Researcher), Johansson, R. (Researcher), Hägglund, T. (Researcher), Vladimerou, V. (Researcher), Romero Segovia, V. (Researcher), Aurelius, A. (Researcher), Cedersjö, G. (Researcher), Bür, K. (Researcher), Dellkrantz, M. (Researcher), Du, M. (Researcher), Amani, P. (Researcher), Larsson, R. (Researcher), Tärneberg, W. (Research student), Li, Z. (Researcher), Yin, L. (Researcher), Tufvesson, F. (Researcher), Höst, S. (Researcher), Nilsson, B. (Researcher), Stenström, S. (Researcher), Andersson, J. A. (Researcher), Diehl, S. (Researcher), Dürango, J. (Researcher), Ghazaei Ardakani, M. (Researcher), Forsberg, P.-O. (Researcher), Bengtsson, F. (Researcher), Jörntell, H. (Researcher), Arévalo, C. (Researcher), Führer, C. (Researcher), Andersson, C. (Researcher), Mohammadi, F. (Researcher), Ödling, P. (Researcher), Andersson, M. (Researcher), Kihl, M. (Researcher) & Tunestål, P. (Researcher)

    2008/07/012018/06/30

    Project: Research

Cite this