Running The Tutorial Example

To run the tutorial example, please do the following in Eclipse:

  1. Select package “com.tensegrity.firststeps.hellonode” or “com.tensegrity.firststeps.swt.hellonode” with the left mouse button.

  2. Select the menu “Run”.

  3. Select the child menu “run as”.

  4. Select “Java Application

  5. The main method from the “Main.java” compiled class will be executed.

  6. In the running application, use the mouse and keyboard to interact with the graph view. While doing so, read the event names as they appear in the console.

Note

Running the SWT-based example as described above you will probably encounter an error of this type: “java.lang.UnsatisfiedLinkError: no swt-win32-3062 in java.library.path”. Please refer to the note in section “Running The Tutorial Example” of chapter “Hello Node” in order to see how to overcome this issue.

Figure 8.1. Events Example Screenshot

Events Example Screenshot

The screenshot above shows the “Events” application after having pressed the “Delete” button two times. Because the “View Event” checkbox is unselected, no view events are logged.