Class ::tycho::EditJava


Inherits: ::tycho::EditCpp - Source File - Contents: public methods - protected method - protected variable
This class defines a text widget with an emacs-like editor with some context-specific features for editing Java files. Java is a machine independent language developed at Sun. The Java editor editor automatically indents a line in response to a Tab character, and provides a command for indenting a region (the selection). To enter a literal Tab, enter the sequence . This editor also colors comments, procedure names, and the strings "FIXME" and "NOTE", and provides a method for commenting out a region. It also provides a command for evaluating a region of code.

Public constructs

Public Methods

evaluate
Evaluate the contents of the text window as Java commands in the global context. Display and return the result of the evaluation.
gendoc
Generate and display a doc file. If the doc file already exists and is newer than the source file, then it is simply displayed, not regenerated. NOTE: This is a Unix-specific implementation, since "exec" is used to invoke "ptlang".
help
Open a help window.
parseNow start stop
Invoke the base class parser to color comments and the strings "NOTE" and "FIXME". Then tag and color procedure names.
tagLinks
This method tags identifiers in the file that are defined elsewhere and are registered for auto-loading in the global array "auto_index". A binding is attached to the tag to perform a hyper jump to the file given in the auto_index array, annotated with the name of the identifier.

Protected constructs

Protected Method

commentRegexp
Return the regular expression used to identify line-oriented comments.

Protected Variable

hypcount 0
Counter for hyperlinks.

Index of classes



Author: Christopher Hylands
Version: @(#)EditJava.itcl 1.10 12/15/96
Copyright: (c) 1996 The Regents of the University of California.