Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting

Sten, Jon ; Mattsson, Tobias ; Bergdahl, Tove ; Mattsson, Jesper and Åkesson, Johan LU (2012) 9th International Modelica Conference p.375-384
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... (More)
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. (Less)
Please use this url to cite or link to this publication:
author
; ; ; and
organization
publishing date
type
Chapter in Book/Report/Conference proceeding
publication status
published
subject
keywords
AST, JModelica.org, Eclipse GEF Graphical Editing Icon Rendering Preserved File Formatting Pretty Printing
host publication
Proceedings of the 9th International Modelica Conference
pages
375 - 384
publisher
The Modelica Association
conference name
9th International Modelica Conference
conference location
Munich, Germany
conference dates
2012-09-03
ISBN
978-91-7519-826-2
DOI
10.3384/ecp12076375
project
LCCC
language
English
LU publication?
yes
additional info
key=ste+12mc project=LCCC-modeling
id
3ca5c125-afe5-4382-9bb9-32fe4a28e552 (old id 2972282)
date added to LUP
2016-04-04 10:20:25
date last changed
2018-11-21 20:58:11
@inproceedings{3ca5c125-afe5-4382-9bb9-32fe4a28e552,
  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.<br/><br>
<br/><br>
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.<br/><br>
<br/><br>
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.<br/><br>
<br/><br>
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.}},
  author       = {{Sten, Jon and Mattsson, Tobias and Bergdahl, Tove and Mattsson, Jesper and Åkesson, Johan}},
  booktitle    = {{Proceedings of the 9th International Modelica Conference}},
  isbn         = {{978-91-7519-826-2}},
  keywords     = {{AST; JModelica.org; Eclipse GEF Graphical Editing Icon Rendering Preserved File Formatting Pretty Printing}},
  language     = {{eng}},
  pages        = {{375--384}},
  publisher    = {{The Modelica Association}},
  title        = {{Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting}},
  url          = {{https://lup.lub.lu.se/search/files/5515714/2972283.pdf}},
  doi          = {{10.3384/ecp12076375}},
  year         = {{2012}},
}