Advanced

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 In Proceedings of the 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
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
in
Proceedings of the 9th International Modelica Conference
pages
375 - 384
publisher
The Modelica Association
conference name
9th International Modelica Conference
ISBN
978-91-7519-826-2
DOI
10.3384/ecp12076375
project
LCCC
language
English
LU publication?
yes
id
3ca5c125-afe5-4382-9bb9-32fe4a28e552 (old id 2972282)
date added to LUP
2012-08-24 11:04:23
date last changed
2016-04-16 07:46:02
@misc{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},
  isbn         = {978-91-7519-826-2},
  keyword      = {AST,JModelica.org,Eclipse GEF Graphical Editing Icon Rendering Preserved File Formatting Pretty Printing},
  language     = {eng},
  pages        = {375--384},
  publisher    = {ARRAY(0x81ac718)},
  series       = {Proceedings of the 9th International Modelica Conference},
  title        = {Implementation of a Graphical Modelica Editor with Preserved Source Code Formatting},
  url          = {http://dx.doi.org/10.3384/ecp12076375},
  year         = {2012},
}