Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This concludes our little KLighD tutorial, but of course there's a lot you haven't seen yet. To go further, take a look at the KLighD pages in our KIELER Confluence space and the examples described there. Also, try solving the assignment below, if you like.

Panel
titleAssignment

In text files, lists can be written like this:

Code Block
* Monday
  * Prepare lecture
  * Meeting
  * Prepare lecture again
* Tuesday
  * Throw away lecture
  * Prepare exam
    * Assignment 1
    * Assignment 2
    * Assignment 3
* Wednesday
  * Do nothing

Create a new project that provides a menu item that fires up a visualization for this kind of list format. The visualization should look something like this:

Image Added

  1. Start by creating a new Plug-in Project.
  2. Create a data structure that represents lists of this kind. This doesn't need to be a fancy EMF model, a simple Java class can be quite enough.
  3. Create a command handler that turns a selected IFile into an instance of your data structure. You can use the command handler from our tutorial as a template.
  4. Write a synthesis that turns an instance of your data structure into a KGraph. You can use the synthesis from our tutorial as a template.
  5. Register the command handler and the synthesis with Eclipse and KLighD. You can use the plugin.xml from our tutorial as a template.