WebFOCUS Maintain provides the following text editors:
You can open and edit code or other text for multiple components
in separate editor windows.
x
Procedure: How to Open a Project Component as Text
In
the Project Explorer, right-click a component and select Edit or Edit
source from the shortcut menu.
The
editor window displays the underlying code or text for the selected
project component.
xCustomizing Parsing Activity
Changes you make to code in the editor are parsed and
automatically incorporated in the corresponding graphical application
component.
Developers can now control the lag time for the parser of the
editor by customizing how long the parser waits for the developer
to stop typing before it automatically parses the Maintain code.
Developers can also disable the parser completely to optimize the
Maintain Development Environment when they are in a typing-intensive
session. They can re-enable the parser to update the Project Explorer
tree automatically.
x
Procedure: How to Customize Parsing Activity
To customize
parsing:
-
To change
or adjust the parsing option for the Maintain Development Environment
(MDE), select Tools, and then Environment
Options.
MDE displays the Environment Options dialog box.
-
On the
General tab, check parse editor to enable
parsing of your code in the code Editor, or uncheck it to disable
code parsing.
If the parser is enabled, it waits until you stop typing
before it begins to parse your code for changes that might affect
the Project Explorer.
If you disable parsing, changes to your
code are not reflected in the Project Explorer until you save them.
-
Use
the spin button to adjust the amount of time (in seconds) the parser
waits before starting to parse your code or type the desired wait
time into the box.
x
Following is a list of common editing functions that
you can perform.
x
Procedure: How to Enter Text
To
enter text, place the cursor where you want the text to go and start
typing.
Note: The editor does
not wrap text automatically, so when you reach the end of a line,
you must press Enter.
x
Procedure: How to Select a Range of Text
To select
a specific range of text:
-
Position
the cursor at the beginning of the text you want to edit.
-
Press
the left mouse button and drag so that the pointer passes over all
the text you want to select.
-
When
the pointer reaches the end of the text, release the left mouse button.
x
Procedure: How to Select All Text
To
select all text, do one of the following:
- In the Edit
menu, click Select all.
- Press Ctrl+A.
x
Procedure: How to Move Text to Another Location
To move
text:
-
Select
the text you want to move.
-
Use
the Cut and Paste commands, or drag it to its new location.
x
Procedure: How to Copy Text to Another Location
To copy
text:
-
Select
the text you want to copy.
-
Use
the Copy and Paste commands, or hold down the Ctrl key
and drag it to its new location.
x
Procedure: How to Undo or Redo an Action
Do
one of the following:
- In the Edit
menu, click Undo or Redo.
- Click the Undo button or
the Redo button on
the General toolbar.
- Press Ctrl+Z
to undo, or Ctrl+Y to redo.
x
Procedure: How to Find Text
To locate specific text:
-
On the
Edit menu, click Find, or click the Find button on
the Editor toolbar to open the Find dialog box.
-
In the Find
What field type the word or phrase you want to find.
-
Select
any search criteria that help to narrow or speed your search.
Note: You can create some powerful searches using
regular expression syntax. For more information, try searching the
web.
-
Click Find
Next to begin searching for the specified text in the
open editor window.
The text appears highlighted.
-
Click Find
Next in the Find dialog box or press F3 to search for
another occurrence of the text.
x
Procedure: How to Replace Text
To replace
specific text:
-
On the
Edit menu, click Replace to open the Replace
dialog box.
-
In the
Find What field, type the word or phrase you want to replace.
-
In the
Replace With field, type the new word or phrase with which you want
to replace the old word or phrase.
-
Select
any search criteria that help to narrow or speed your search.
Note: You can create some powerful searches using
regular expression syntax. For more information, try searching the
web.
-
Click Find
Next to begin searching for the specified text.
WebFOCUS Maintain finds and highlights the text.
-
Click Replace to
replace the highlighted text with your new text or phrase.
-
WebFOCUS
Maintain automatically highlights the next occurrence of the text.
Click Replace if you wish to repeat the substitution.
Note: To
replace all occurrences of the text found at one time, click Replace
All.
x
Procedure: How to Preview an Application Component as Text
In the File menu, click Print
preview.
The text appears on the screen as it
will look when printed.
x
Procedure: How to Print an Application Component as Text
To print, do one of the following:
- In the File menu, click Print.
- Click the Print button on
the General toolbar.
xUsing Bookmarks to Move Within the Editor
The bookmark option places a bullet next to or removes
a bullet from any line in the editor. You can place multiple bookmarks
in a file by using the Mark All function
in the Find dialog box. After a bookmark is added, you can jump
to that bookmark from anywhere in a file. If you have multiple bookmarks,
the cursor jumps to the very next bookmark.
Bookmarks are temporary. They disappear when you close the editor window.
x
Procedure: How to Apply or Remove a Bookmark
To add or remove
bookmarks:
-
Position
the cursor anywhere in a line where you want the bookmark to appear.
-
Right-click,
then select Toggle Bookmark.
or
Click the Toggle Bookmark button on
the Editor toolbar.
or
Press Ctrl+F2.
x
Procedure: How to Jump to a Bookmark
To jump to another bookmark, click the Next Bookmark button or Previous
Bookmark button .
The cursor
jumps to the next or previous bookmark in the editor.
x
Procedure: How to Apply Multiple Bookmarks
To apply
multiple bookmarks:
-
On the
Edit menu, select Find.
The Find dialog box opens.
-
In the
Find What field, type the word or phrase you want to find, then click Mark
All to mark all lines with this text.
x
Procedure: How to Remove All Bookmarks
To
remove all the bookmarks, do one of the following:
- Click the Clear
All Bookmarks button on the
Editor toolbar.
or
- Close the editor
window and reopen it.