Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://rtm-cs.sinp.msu.ru/manual/mico/doc/node70.html
Дата изменения: Mon Jun 7 21:54:59 1999 Дата индексирования: Mon Oct 1 21:23:05 2012 Кодировка: |
The MICO sources include an interactive conceptual graph editor written in Java. The sources of the example are located in the directory mico/tools/ir-browser. Note that you need the Java Developers Kit 1.1.5 as well as a parser generator for Java called JavaCUP (see chapter 2 on where to obtain these tools). We assume that you have succefully compiled the MICO sources contained in the aforementioned directory. Alternatively you can run the Java applet from your favorite WWW browser by visiting the MICO-homepage.
Two files in the ir-browser directory are of importance to run the example:
In order to run the demonstration, you first have to run the shell script runproxy. You simply do this by starting it from an UNIX shell:
./runproxy
After this you can load the applet by either using a Java capable browser or the appletviewer tool which is part of the JDK. You can run the applet be running the following command from an UNIX shell:
appletviewer dii.html
Once the applet has been loaded, click on the button called Start IR browser. A new window opens. The right side of this window shows all top-level objects contained in the interface repository. For each object there is one icon. If you click on one of these icons using the left mouse button, the IDL source code of that object is shown in the left side of the window. You can ``enter'' an object using the right mouse button (this of course works only on container objects like interfaces or modules). If you press the right mouse button on an operation object, another window will open containing a conceptual graph representing this operation. You can change the input parameters of that CG before invoking it on an object.
Here is a short step-by-step tour:
HINT: If you move the pointer over a node of the graph the status line will show you the actions possible on this node. For example Shift-Button1: edit means: To edit the contents of the node press the left mouse button while holding down the SHIFT key.