JAVA Tool Set

TCD Editor


TCD Editor Index page.

About TCD Editor page.

Try it

If you browser has the JAVA Plug-in you can click below to see and example of the TCD Editor running in an Applet on your desktop

Navigation and Commands for the TCD Editor

Introduction

The TCD Editor attempts to marry the functionality and similarity of the VM/CMS Xeditor Window system with the MVS/TSO Editor, while at preserving the flexibility of the PC's graphical user interface functions, such as Cut/Paste, Menus, Pulldowns; and the usability of the mouse.

The drive for originally developing this Editor was to provide programmers familiar with XEDIT and TSO Edit an editing facility that could be used on any PC Platform, whether Windows, Solaris, Linux or OS/2, and thus extending their ability to use their acquired knowledge and text editting skills to these platforms. We will use the VM/CMS XEDIT as the primary editor model to emulate insofar as look and feel and command structure.

The product is written in JAVA using the SWING and NetREXX classes. In theory, it can be ported to any computing base that supports the JAVA Run Environment and SWING Graphical User Interface.





**Please note that this program is under development. We are improving this facility on an "as we go" basis, adding functionality as we need it. The full richness of the Xedit and TSO functions is not there yet (especially when run as an Applet). We plan to have all the important, relavent and useful features, as well as PROFILING, STATUS setting and MACROs in a future release. However, in the meantime, as each new function becomes available it's name and description will be listed below.**




The Display Setup

The Editor Window consists of 3 main panels: the Command Area, the Prefix Area and the TextEditing (or File) Area. It also has a Status Area and a Message Line.

Editting and I/O commands (such as SAVE, OPEN, CANCEL) may be issued from the Command Area.

The Prefix Area is the panel that has the line (or row) numbers. Special commands can also be issued from here.

The TextEditting or File Area is where the input file is layed out. Each line is separated by a line_end character that is invisible.

When the ARROW or PAGEUP/PAGEDOWN keys are used the display will be repositioned (scrolled up or down) so that the CURSOR Line remains at the halfway point on the screen, unless you are near to TOP or BOTTOM.

Immediately under the Command Area is the Message Line. This will show error and informational type messages that may be generated by your editting commands.

The bottom panel is a Status Area. This shows your editting coordinates in both rows and columns, and pixels, along with offset from the beginning of the file. The area will also show INSERT/OVERLAY modes and CAPS ON mode.

Movement among the panels is performed by using the HOME, ENTER, TAB+CTL and the Down key.

Keyboard Setup

To move from Command Area to TextEditing Area use the Down or the Page_Down keys, or the HOME key. To move back to the Command Area from the Text Editing use the ENTER key or the HOME key.

To move back and forth between the TextEditing Area and Prefix Area use the CTL+TAB combination keys.

To return to the Command Area from the Prefix Area use the HOME key.



Arrow Keys move you up, down, right and left incrementally.

CTL+DELETE delete to end of line

CTL+J line join

CTL+S line split

Backspace delete prior line character.

Delete delete the next line character

End Alternates between end positions of line.

Enter Process Enter key.

Home Return cursor to Home position.

Insert Toggle typing mode from overlay to insert.

PageUp Move up a page at a time.

PageDown Move down a page at a time.

Tab Tab cursor to the right 10 columns at a time.


Command Area Functions

To execute the below commands, simply type the command into the Command Area and then hit the Enter Key.

ADD Add a blank line.

BOTTOM Moves to the last line of the text.

BACKWARD Page backward screen(s) at a time.

CANCEL Terminate the editting without saving.

CAPPEND Append a text string to a line.

CPREPEND Prepend a text string to a line.

CHANGE Changes 1 or more occurences of a string.

CLEARPREFIX Clears variables and pointers of all prefix operations.

CUT Copies rows to the System Clipboard.

DELETE Deletes 1 or more lines.

DOWN Moves current line position down 1 line..

EXIT Same as CANCEL.

FILE Saves the text, then closes the file.

FILENAME Changes the output filename.

FORWARD Page forward screen(s) at a time.

INPUT Open a blank line for input.

LOCATE Locate a string of data.

LOWER Translates line characters to lower case.

   
   MAX              Move current line to the Top of File.
                    Same as TOP. 
   
   MIN              Move current line to the Bottom of File
                    Same as BOTTOM.


OPEN Opens another edit window for the specified file.



PASTE Pastes data from the System Clipboard.

QUIT Same as EXIT.

REPEAT Repeat prior command processing.

   SAVE             Saves the text into its original file.
   
   SHIFT            Shifts editable text left or right nnnn positins.
   
                    Syntax:  SHIFT RIGHT nnnn  ,where nnnn is 1 to 9999
                             SHIFT LEFT  nnnn


TOP Moves to the first line of the text.

UP Moves current line position up 1 line.

LOWER Translates line characters to upper case.

:nn Position cursor line at absolute line number.

+nn Positions cursor line down nnn number of rows.

-nn Positions cursor line up nnn number of rows.


Set Commands

SET commands are entered in the COMMAND AREA window of the display frame. They are used to set up the behaviour of the display environment and of other Commands, such as LOCATE and CHANGE.

All SET commands must be preceded by the word SET.

  


DISPLAYMODE Changes screen scrolling behaviour.

STAY Keeps view at current line while issueing commands that may propagate change through entire file. Syntax: SET STAY ON|OFF Default: OFF TRACING Developer's edit subroutines tracing faciltiy Syntax: SET TRACING ON|OFF Default: OFF ZONE Sets column limits for other editing command, such as LOCATE and CHANGE. This restricts editing application command to the specified columns. Syntax: SET ZONE first_col last_col Default: 1 *

Prefix Area Function

Prefix commands are entered in the PREFIX AREA window of the display frame. They may be entered with or without intervening ENTER key strokes.

The double prefix commands, such as CC (COPY), are called Block Type commands. You would place these on the begin and last lines, by overtyping the line number. This will indicate the block of rows upon which you want to perform an operation.

  
   
   Permitted combinations:   CC block with F, P, A, B
                             C        with F, P, A, B
                             MM block with F, P, A, B
                             M        with F, P, A, B
                             DD block
 
   
   C                Copy a single row.
   
   CC               Copy a block of rows.
   


m Move a single or block of lines.

D Delete a single row. Multiple single deletes can be processed together. This command can be performed over multiple lines simultaneously. R Repeat this row on next line. DD Delete a block of rows. F Insert row following this line. P Insert row prior to this line. A Insert row after this line (same as F). B Insert row before this line (same as P). I Open an Input row following this line. O Create a single row of SPACE following this line. This command can be performed over multiple lines simultaneously. / Marker (forward slash) for PASTE operation.

Pull_Down Menus

  
File --
               Save      Will save the contents being editted. 
               Close     Will close the file and window.
               Open      Will open another file in another window.
   
Edit --
               UndoDeletion
               Redo  
               Cut_to_Clipboard
               Copy_to_Clipboard
               Paste_from_Clipboard
               Select_All
   
View --
               ForeGround Color    Changes the color of the foreground.
               BackGround Color    Changes the color of the background.
   
Fonts --
               Type           Sets the font type. 
               Style          Changes the style of the font.
               Size           Sets the size of the font characters.
   
Info --        (This tab is superceded by Website HTML documentation)
               Help           How to use the editor. 
               About          Producer of the product.
               History        Historical record of development and fixes.
               Properties     Displays Environmental and JAVA level information.
   
FileName--     The full pathname of the file being edited. 

[ Return to Index ]