Other relevant on-line documents:
icon.
Depending on how your system is set up, you may need to set up your access to your system before you can run Legion commands. This will probably involve running a command such as this:
$ . ~LEGION/setup.sh
or
$ source ~LEGION/setup.csh
The Context Manager can be run from the command-line of any platform compatible with the Java Development Kit (JDK) 1.1.3. A Windows95 client application, called the Legion Server, allows users to run the Context Manager from Windows95.
In this space, you can assign string names, here called context names, to Legion objects. Context names have no relation to an object's physical location or type, but are designed for user-convenience only. Multiple users can assign context names to the same object, or you can assign multiple names to a single object to make it easier to find in different situations.
$LEGION/src/Java/client/:$LEGION/src/UserInterface/swing.jar:.
$ make
$ legion_java ContextMgr & *

Figure 1
If you get errors at this point, check that your environment is properly set and that your DISPLAY variable is correct.
You also need to have either the Java Runtime Environment (JRE) version 1.1.3 or later, or JDK version 1.1.3 or later, installed on your Windows95 machine. You can download these from http://java.sun.com/products.
Note that you will actually be running two separate applications, one from the command line of the machine running your Legion session and one from a DOS window of your Windows95 machine.
$ javaLegionServer & javaLegionServer: your.machine.DNS.name 1234 $
We recommend that you run this in the background, although again it is not necessary.
$ Legion [machine name] [port#]

Figure 2
To restart the Windows 95 Legion Context Manager repeat steps 3 and 4 above. You will get a different port number each time you run the Context Manager.
Click the right mouse button in the Context Manager window to reveal three options:
| Create Context | Create a new sub-context (similar to a Unix sub-directory) in the current context. A new window will appear to ask you to name the new context. The new sub-context will be placed in your current context, unless you specify via a full context path name (e.g., you can place the new sub-context in the parent context by using ".." in the new context's full path name). | |
| Import File | Import a copy of a local file into Legion space. That is, copy the local file's contents into a new Legion file object. A separate window (figure 3) will appear. If you click on the "Browse" button you can browse through your local file space. Be sure to give the new object a context name. | |
![]() Figure 3 | ||
| Import Directory | Import a local directory into Legion space or from Legion space into local disk space. A separate window showing the local file system will appear. You can type the directory path in the Current Directory cell or browse through your local system by clicking directory names in the Subdirectories cell. | |
The context icon represents a context, similar to a Unix directory. You can change your current context by double-clicking on a context icon. Click the right mouse button to get the following options:
The parent context icon represents the current context’s parent context. Double-click the left mouse button on this icon to change your current context to the parent context. Clicking the right mouse button will produce the same options as with the context icon (above).
The class icon represents a class object. You can double-click the left mouse button on a class icon to see a list of the class's instances.

Figure 5
This opens a new window that lists each instance's LOID, status, Object Address (OA: an active object's location), Host, and Vault (figure 5). The Instance pull-down menu allows users to activate, deactivate, and destroy selected or all instances, as well as to refresh the window.
The instance icon represents an instance of a class object. Click the right mouse button to get the following options:
The file object icon represents a file object. Double-clicking this icon opens a text window displaying the file's contents. Click the right mouse button to get the following options:
![]() Figure 6a |
![]() Figure 6b |
The pull-down menus (figures 7, 8, 9, and 10) can be used to do the following:
| File-> | New-> | Open New Window | ||
![]() Figure 7 | Open a new Context Manager window. This will point to the same context space as the original Context Manager window. | |||
| New File | ||||
| Create a new File Object. A New File window will open, where you can enter the new object's context path name, then a text editor window will open. The Ctrl-n key combination will also run this process. | ||||
| New Context | ||||
| Create a new sub-context in the current context. This carries out the same function as the Create Context option in the Context Manager options window, discussed above. | ||||
![]() Figure 8 |
View File | ||
| Display contents of a selected textual file object in a separate window. | |||
| Import File | |||
| Import a copy of a local file into Legion space. A separate window will appear, with the option to browse through local file space and specify a filter to use when copying the file into Legion space. The Ctrl-i key combination will also run this process. | |||
| Import Directory | |||
| Import a local directory into Legion space or from Legion space into local disk space. A separate window, showing the local file system, will appear. | |||
| Export File | |||
| Export a copy of a local file to local disk space. The Ctrl-e key combination will also run this process. | |||
| Quit | |||
| Close the current window. If only one window is open, the program will exit. The Ctrl-x key combination will also run this process. | |||
| Edit-> | File-> | View File | |
![]() Figure 9 | Opens a Text Editor window, where you can edit the file's contents. | ||
| Copy File | |||
| Make a copy of the file object. This will create a new object, with a new LOID and context name but with the same content. The Ctrl-c key combination will also run this process. | |||
| Export File | |||
| Export a copy of a local file to local disk space. The Ctrl-e key combination will also run this process. | |||
| Class-> | Run... | ||
![]() Figure 10 | Executes a previously registered executable program class. Click here for information about registering remote programs and here for information about running remote programs in the GUI. This option will produce a separate window, which can be used to specify input and output file names. The Ctrl-p key combination will also run this process. | ||
| Show Instances | |||
| Display all instances of a selected class in a separate window. The Show Instances option returns several pieces of information about the selected class's instances, as shown in Figure 5. The Ctrl-p key combination will also run this process. | |||
| Activate All Instances | |||
| Activate all instances of a selected class. The Ctrl-a key combination will also run this process. | |||
| Deactivate All Instances | |||
| Deactivate all instances of a selected class. The Ctrl-d key combination will also run this process. | |||
| Move | ||||||||||||||||||||||||||||||||||
| Change the object's context name and remove the old name from context space. This carries out the same function as the Context icon Move option. | ||||||||||||||||||||||||||||||||||
| Alias | ||||||||||||||||||||||||||||||||||
| Assign another context name to the selected object. This carries out the same function as the Context icon Alias option. | ||||||||||||||||||||||||||||||||||
Get Interface|
| | View the selected context object's interface.This information will appear in a separate window. The Ctrl-g key combination will also run this process. | Get Attributes |
| | View the selected context object's attributes. This information will appear in a separate window. The Ctrl-h key combination will also run this process. | Destroy |
| | Destroy a selected object's context name and possibly also the object itself. This carries out the same function as the Context icon Destroy opt. The Ctrl-Delete key combination will also run this process. | Activate |
| | Activate a selected, currently inert, object. | Deactivate |
| | Deactivate a selected, currently active, object, i.e. move it to an inert state. | | |||||||||||||||
* The Context Manager does not have to be run in the background, but otherwise your command line will be inactive. Back