GRASP - CSD Window (Java) : Edit

File | Edit | View | Templates | Windows | Compiler | Run | Help

The edit menu gives the user standard editing capabilities, plus a few extra options.

Undo - This option will undo the last editing change made to the CSD window, whether it is deleting a single character or cutting a large section of code. Undoing an undo has no effect.

Cut - Removes the highlighted text from the CSD window and places it on the clipboard.

Copy - Places a duplicate of the highlighted text on the clipboard.

Paste - Places a copy of the most recent item on the clipboard in the CSD window at the current cursor location.

Search/Replace - Opens a Search/Replace dialog.

Search Forward - When this button is pressed, GRASP will take the text that has been placed in the Search For text box and scan through the file, starting at the current cursor location, looking for the next instance of that text string.

Search Backward - Similar to search forward, except this ibegins at the current cursor location and moves backward through the file.

Replace - Searches forward through the file looking for the next instance of the text in the Search For text box, and places that text with the text string in the Replace With text box.

Replace All - Similar to replace, except that all instances of the contents of Search For are replaced with the contents of Replace With.

Replace then Search Forward - This inserts the contents of the Replace With text box at the current cursor location, and then proceeds to the next instance of the contents of the Search For text box. Note that successively pressing Replace then Search Forward will replace, one at a time, each instance of the Search For with the contents of Replace With.

Identifiers Only - When this button is selected, the search and replace functions will attempt to match whole words (i.e., those strings bounded by whitespace) with the contents of the Search For text box, rather than searching for all substrings.

Comment - By highlighting a section of code and selecting this option, GRASP inserts comment delimiters around the highlighted code.

Uncomment - By highlighting a section of code and selecting this option, GRASP removes the first comment delimiters on each line of the highlighted code.

Goto Line - Moves the cursor to the begining ofo the chosen line number.

Insert File - This option raises a file selection dialog from which the user may choose a text file to insert in the CSD window at the current cursor location.

Return to the Introduction to GRASP Page