This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 16624 - update editor
Summary: update editor
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: antlr (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ derrick
URL: http://web.netbeans.org/doc/JSPParser...
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-17 00:41 UTC by _ derrick
Modified: 2001-10-31 05:13 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ derrick 2001-10-17 00:41:30 UTC
The codebase for the editor is like the jsp editor.  At one time it compiled
against NetBeans 3.1. Since then the Open API for the editor has changed,
causing the compile to break. Specifically, the following files have compile
errors:
                     org/netbeans/modules/antlr/editor/DelegatingEditorKit.java,
                     org/netbeans/modules/antlr/editor/GColoringManager.java,
                     org/netbeans/modules/antlr/editor/GOptions.java,
                     org/netbeans/modules/antlr/editor/GOptionsBeanInfo.java,
                     org/netbeans/modules/antlr/editor/Main.java,
                     org/netbeans/modules/antlr/editor/NbEditorGKit.java,
                     org/netbeans/modules/antlr/editor/g/**,

The editor code needs to be brought up to the current API.

Stephen Szalla writes:

I have constructed Syntax, TokenContext, etc. for ANTLR and borrowed heavily
from the JSP stuff to get the embedded language parsing and editor coloring
working. I have the ANTLR editor appearing under the editor settings node of the
options window, and the settings lists appear on the right when I select ANTLR
Editor. But when I try to edit the coloring settings, no token types appear in
left side of the fonts and colors property editor.

The syntax coloring in the editor isn't completely working, e.g. sometimes a
file will be displayed with the last few tokens missing. If you need an example
grammar file which exhibits this problem, let me know and I'll try to find one.
Comment 1 _ derrick 2001-10-17 03:58:19 UTC
The antlr.g file is also out of date and needs to be updated to ANTLR
2.7.1 which will get the
    org/netbeans/modules/antlr/editor/g/**
files compiling again.
Comment 2 _ derrick 2001-10-31 05:13:54 UTC
Ok, it appears to be working.
At least the editor runs inside NetBeans.