Eclipse Development Using the Graphical Editing Framework And the Eclipse Modeling Framework

 < Day Day Up > 


6.3 Sample application demo

The sample application workflow editor is the default editor for file with a .workflow extension.

To run the workflow sample application, we need to first create a simple project, than create a workflow file using the simple file creation wizard or the workflow wizard. The workflow wizard provides workflow file extension handling and control.

To create a simple project:

  1. Click File -> New -> Other..., select Simple -> Project, click Next.

  2. Give the project name, click Finish.

To create a workflow model with the simple file creation wizard:

  1. Click File -> New -> Other..., select Simple -> File, click Next.

  2. Give the file name, for example myworkflow.workflow, click Finish.

To create a workflow model with the simple file with the workflow wizard:

  1. Click File -> New -> Other..., select Other -> Workflow, click Next.

  2. Give the file name, for example My.workflow, click Finish.

In both cases, the workflow editor opens automatically on a new empty workflow. Figure 6-11 shows a workflow model built using our redbook sample application.

Figure 6-11: Workflow sample application window

Note 
  1. If your starting point is the additional material, which contains the plug-in code, you have to run the plug-in on a Run-time Workbench. Eclipse automatically opens the editor on the workflow file, created during the simple file creation process.

  2. The Edge creation tool was considered as a composite of the model. It was presented in a way similar to Tasks, with an Edges menu and an Edge entry. Later on, it has been considered not as being a composite, but more like a link between two composites. As such, it was moved to the top of the menu, just after the Select and Marquee tools.


 < Day Day Up > 

Категории