[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. Using Standalone OO-Browser Features

A number of browser features may be used independently of the browser user interface. First, an Environment must be selected and loaded into the OO-Browser via {C-c C-o} or `M-x oo-browser RET'. When the browser user interface is displayed, use {q} to quit.

Alternatively, an Environment may be loaded without invoking the browser user interface by using `M-x br-env-load RET'. The standalone browser features will use the newly loaded Environment.

(Note that terms in all CAPITALS below are an ordered set of parameters prompted for and used by each command. The key bindings are set up in the file `br-site.el' for each OO-Browser language that you purchased.)

The following commands are available for standalone use.

br-feature-edit-declaration {C-c M-j}
Prompts with completion for a CLASS::FEATURE argument and then edits the associated declaration. If point is on a feature definition signature in a code buffer (prior to any of its arguments), the default is to edit that feature's declaration. An error is signaled if the declaration is not found. Presently, this command is available under C++ only.

br-find {C-c M-f}
Prompts with completion for a class or element name from the current Environment and displays its definition for editing.

During code edits and debugging sessions, it is often helpful to be able to look at a class or element definition without having to invoke the browser to locate it. The (br-find) command does exactly that by prompting for a name and then displaying the named class or element definition.

Displays the source text for a class matching CLASS-NAME in VIEW-ONLY mode (or edit mode if `nil').

The (br-find-class) command is similar to (br-find). It prompts for a class name and then displays its source file in a viewable, read-only mode. To display a class file in an editable mode, send a prefix argument to this command.

br-complete-symbol {M-TAB}
Performs in-buffer completion of a type or element identifier before point.

When writing code and entering class attribute definitions (variable definitions), you often have to enter class names repetitively. The (br-complete-symbol) command completes and inserts a class name at point within the current buffer. The following example illustrates its usage.

        my_list: LIN<-- (point is here)

{M-TAB} is pressed:

        my_list: LINKED_LIST

br-where {C-c M-w}
Prompts for a class or element name and displays the full path to its definition in another window. With an optional prefix argument, it inserts the path at point.

All of these commands offer full completion. See section 2.21 Completing Names, based upon the current OO-Browser Environment.

See section 6.4 Eiffel Specifics, for an Eiffel-specific standalone browser feature.

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs Webmaster on October, 2 2007 using texi2html