How to open new editor, Editing commands, Default key layout, Searching, Go to line, Nonallowed operations, Saving of filesII. User's Guide to the EditorII.1 How to open new editor?The editor can be opened either for already existing source or for new class. The list of existing classes can be shown in the browser window and that is why the browser is the right place for opening editor on exisiting source. For more info refer to the browser documentation. To open new class you have to open the New class dialog and create new source. The editor window with the source will be displayed. II.2 Editing Commands (new in 0.91)
Redefinition of keys is done through configuration files. These files
should be stored in package
II 2.1 Default keys
To manipulate with text also commands in editor menu can be used. Warning: Please also notice that it is not posible to share the clipboard with other programs in your system. The clipboard is private for Xelfi. It is caused by the absence of clipboard handling methods in the JDK 1.0.2. II.3 Searching in the Editor![]() Replacing of text is also very easy. When first occurence of Text to find has been found it is possible to press the Replace and find button. Then the text in Replace with field is substituted instead of the found one and new occurence of Text to find is found. The dialog can be closed by click to Cancel but it need not be. Because in spite of its appearance the editing of text in the editor is unaffected. II.4 Finding LineIt is possible to find a line in the editor window even only if its line number is known. For these purposes the Go To Line dialog can be used. ![]() II.5 Nonallowed operationsBecause we use the editor to browse text that is automaticly generated by the visual designer and we do not want to solve problems that could arrive when the user would modify this code we decided not to allow changes in the generated text. This may be seen as a strong restriction but it saves users a lot of troubles that could result in unexpected code lost. When an insert or delete is initiated in the text that is "Xelfi generated" the operation is canceled and a warning message in the status line is shown. II.6 Saving of files
The sources of edited classes are kept in the memory and to disk are flushed (this process is called synchronization) only at one of user requests: ![]() ![]() ![]() |