Exercise 01: Get Sources

What This Exercise Is About

You will get project sources from CVS as a single project, then import those to your workspace so that you can compile & edit the sources as plugin and feature projects.


What You Should Be Able To Do

At the end of the lab, you should be able to:

Required Materials

General Advice / Warnings

Exercise Instructions

This exercise is carried out entirely using the Eclipse Software Development Kit (SDK) version 3.4M5 with the Eclipse Modeling Framework (EMF) 2.4M5 installed into it. The exercise instructions refer to this product as either Eclipse or as "the workbench."

These instructions are located in your workspace, in the Build_Workshop/Exercise01_GetSources folder that was imported by the Setup step of the cheat sheet.

The full solution to this exercise can be installed using the cheat sheet.


Directions

Step A: Method 1 - Check out the projects from CVS

Before you can do anything, you need to check out the projects. Here's how they appear in CVS, organized logically by type:


Directory structure in CVS

However, for them to be useful in Eclipse they all need to be first class (ie., not nested) projects. The methods below will ensure this.

  1. Switch to the Plug-in Development perspective, if not already there.
    1. Select Window -> Open Perspective -> Other... -> Plug-in Development.
  2. In the Package Explorer view, right-click the file Build_Workshop\Exercise01_GetSources\exercise_01.psf and select Import..., then select Team -> Team Project Set. Hit Next.
  3. If not already selected, click Browse... to select the exercise_01.psf file in this directory. Hit OK, then Finish.

Step A: Method 2 - Import from existing projects using cheat sheet

  1. Switch to the Plug-in Development perspective, if not already there.
    1. Select Window -> Open Perspective -> Other... -> Plug-in Development.
  2. Cheat Use the cheat sheet to copy the sources into the Build_Workshop project.
  3. In the Package Explorer view, right-click and select Import..., then select General -> Existing Projects into Workspace. Hit Next.
  4. Choose Select archive file: then Browse... for Build_Workshop/Solution01.zip in your workspace.
  5. Hit Finish.

Step B: Compile code & verify environment

  1. You should have 18 projects checked out in your workspace, in addition to the Build_Workshop project.
  2. If your workspace is not already configured to automatically build projects, select Project -> Automatically. Or, you can run builds manually using Project -> Project or Project -> Build All (CTRL-B).
  3. If anything won't compile, right-click its project folder and select Properties. Verify that it's being compiled with the correct compiler under Java Build Path and Java Compiler. You might need to review your Java and Eclipse Settings, too.
  4. If you run into unexplainable errors in the org.eclipse.jet.transforms.* projects, try doing Project -> Clean....
  5. Once everything compiles, if you have time remaining, you can try out JET, as a preview of Exercise 09:

Summary

You checked out the sources from CVS using a Team Project Set file, then verified that everything would compile. Now it's time to set up a build project. Go on to Exercise 02.