Running The Tutorial Example

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

  1. Select package “com.tensegrity.firststeps.mvc” or “com.tensegrity.firststeps.swt.mvc” 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 “MVCExample.java” compiled class will be executed.

  6. Select elements in either of the two views and acknowledge that the other view remains synchronized.

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 4.1. Screenshot MVC Example

Screenshot MVC Example

Two views attached to a single model.