TOC PREV NEXT INDEX DOC LIST MASTER INDEX




Menu Bar and In-Place Operations

For Apex editor windows, the menu bar is always enabled as a drag source. If the window represents a filesystem object, dragging the menu bar drags the associated file or directory.

The menu bar is also always a drop site. Dropping a filesystem object on the menu bar of most windows performs a visit operation of that object. If the object is of the same kind as the window being dropped on, a visit-in-place operation will be done. This is particularly useful for windows representing text files, Ada files, C files, C++ files, and directories.

For example, suppose you're finished looking at a file and wish to see another file in the same place. Simply drag another object of the same type from a directory window (or any place else where a pathname occurs) and drop it on the menu bar of the window you want to replace.

For those drop operations where in-place is the default, using the Shift modifier produces a new window instead of replacing the dropped on window.

Dropping other kinds of objects on the menu bar performs operations depending on the source object type. This might be an in-place show operation. For example, dropping a file on the menu bar of the Versions windows does a Show Versions of that file replacing the contents of the window. Dropping a view on the menu bar of the Versions window does a Show Versions of the corresponding object in that view for the one in the Versions window.

For example, a Versions window for some file which is the latest version of that object is displayed. To see what version of that object existed in the x.y.z release view, go to the subsystem window (or expand the Subsystem line in-place in the Versions window) and drag a view from there and drop it on the menu bar of the Versions window.

Other directory-type windows that support the in-place show notion are the Imports, Exports, and Histories windows.

Dropping a source file on the source text part of the debugger window visits that file in that area.

Dialog boxes which correspond to a particular filesystem object can be changed in-place to represent a new object by dropping a filesystem object on the background of the dialog box. The file locator that comes up from pressing the navigate button next to a text field has this property, as do the three dialogs that show properties of a particular object.

A line from one of the Visit History dialogs can be dragged from the list widget there and dropped onto the background of that dialog to visit that object.

The background of the main Apex window is enabled so that dropping an object on it visits that object.


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS