Browse Prior Art Database

Method and System for Providing Anchor-Based Integration between Source and Diagram Editors without Model Translation

IP.com Disclosure Number: IPCOM000241831D
Publication Date: 2015-Jun-02
Document File: 5 page(s) / 169K

Publishing Venue

The IP.com Prior Art Database

Abstract

A method and system is disclosed for compiling a template document into an object model which still maintains source anchors back into the template. A source anchor is a text editor device that maintains a location of a line of code in the editor even when code is removed or added above that line. A diagram editor, then, visualizes the object model and a text editor loads the template.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 30% of the total text.

Page 01 of 5

Method and System for Providing Anchor-Based Integration between Source and Diagram Editors without Model Translation

Most open source frameworks support text-based template documents using open standard markup languages such as, but not limited to, Extensible Markup Language (XML), YAML Ain't Markup Language (YAML). However, as an application becomes more complex, maintaining a template using just a text editor can become labor intensive, prone to errors and difficult for a user to understand. A graphical editor is

better suited for visualizing complex applications and is ideal for turning simple user gestures into complex model changes. However, large template properties, such as user scripts, are still more easily edited in a text editor.

In order to provide the best of both graphical and textual metaphors, some editors simultaneously provide both a graphical and textual view of the same template. In these editors, the graphical editor, when open, translates the template document into an object model which can be visualized and edited. When the text editor/viewer is open, the object model is translated back into text for editing or exporting. Because of the double-translation, however, the original formatting of the template is lost, including any special commenting or structure. Also, the relationship between elements in the template and shapes or properties in the diagram is lost. The double-translation also results in performance issues when switching between views.

Disclosed is a method and system for solving the aforementioned problems by compiling a template document into an object model which still maintains source anchors back into the template. A source anchor is a text editor device that maintains a

location of a line of code in the editor even when code is removed or added above that line. A diagram editor then visualizes the object model and a text editor loads the

template.

In accordance with the method and system disclosed herein, when an element is added

in the diagram editor, the diagram editor uses the source anchors in the object model and the text editor's Application Programming Interface (API) to programmatically update the template without any compilation. Since there's no translation, the changes made in the diagram editor are immediately available in the text editor without changes to the template, and without the need to regenerate the model, results in significant performance (responsiveness) and maintenance advantages.

For example, if a user adds the element to the diagram editor, the diagram editor programmatically inserts the element into the text editor without affecting the comment above it. The change can also be highlighted to keep track of what changed in the template as illustrated in FIG. 1.

1


Page 02 of 5

Figure 1

The method and system also makes other synergies possible between the two editors, including the following:

The method and system utilizes a palette drag-and-drop functionality in...