Import OCL Library project

In this section, you will import an existing OCL Library project. You will be using OCLWorkshop2008Demo as your example project.

Getting the Sample Code (OCLWorkshop2008Demo)

First you need to download the OCLWorkshop2008Demo source code.

  1. Click here to download the OCLWorkshop2008Demo source code.
  2. Extract the archive to a directory from now on referenced as <Downloads>.

Import the project

  1. Inside Eclipse select the menu item File > Import... to open the Import wizard.
  2. Expand OCLEditor Community Edition, select OCL Library Project, and click Next. Alternatively select File > Import > General > Existing projects into workspace
  3. Click the Browse button and browse to select

    <Downloads>/OCLWorkshop2008Demo

    Make sure that the names of the OCL library project and package are unique. Then click Finish.
    Note: This step assumes that you followed steps 1 and 2 in the Getting the Sample Code section above.

    Import wizard

  4. In the Project Explorer view, expand the OCLWorkshop2008Demo project and the ocl folder to view the OCLWorkshop2008Demo libraries.

    Package explorer

     

Alternatively an OCL Project can be imported through: File > Import > General > Existing Projects into Workspace...