Browse Prior Art Database

Use a Single Scan of ESQL Document to Achieve Eclipse Text Editor Document Partition and Presentation

IP.com Disclosure Number: IPCOM000021496D
Original Publication Date: 2004-Jan-21
Included in the Prior Art Database: 2004-Jan-21
Document File: 1 page(s) / 40K

Publishing Venue

IBM

Abstract

An algorithm is disclosed to perform document partition and visual presentation in an Eclipse text editor by scanning an ESQL document only once.

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

Page 1 of 1

Use a Single Scan of ESQL Document to Achieve Eclipse Text Editor Document Partition and Presentation

An algorithm is disclosed to perform document partition and visual presentation in an Eclipse text editor by scanning an ESQL document only once.

The Eclipse text editor framework supports a document model which divides a document into non-overlapping partitions, and an add-on to control visual presentation of the document. When a change to the document is made, only the presentation of affected partitions is invalidated and repaired. The framework goes through a two-step process when opening a text editor or a change is made: it scans affected document ranges to establish partitions; and then scans each partition to apply presentation strategies. The two-scan design would not cause performance concern, if either the two scans are different and individually tailored, or the scan itself is so fast that duplication does not make any noticeable difference in the responsiveness of the editor.

ESQL language is used in WebSphere MQ Integrator. For maintenance reason, ESQL uses the same scanning algorithm for both partition and presentation. The scan consists of parsing and lexing of the source, which is not fast enough for the editor to afford two scans whenever a change is made. For an ESQL editor, it is necessary to combine the two scans into one.

From the result of one scan of ESQL document, the information needed for both partition and presentation is obtained. The document is first being partitioned, and presentation information is stored for each partition. When the editor framework invokes the presentation strategy for a partition, the stored presentation information is used, instead of re-scan the partition. By combining the two scans into one, an approximate 50% improvement is achieved in the editor's response time.

An Eclipse text editor document is divided into consecutive and non-overlapped partitions. For ESQL, this is achieved by parsing the document...