Table of Contents Previous Next Index

CHAPTER 3 Eclipse Plugin : Using the Plugin

Using the Plugin

You can use the plugin as a front-end to all your SDK tasks. In particular, you can run SDK targets as follows:

To Run an SDK Target

1. If it is not already open, then open the Comergent Perspective, by clicking Window -> Open Perspective -> Other and select the Comergent SDK perspective from the list of available perspectives.

2. Click Open.

3. In the Comergent Perspective, navigate through the Tasks panel to locate the target you want to run.

4. Double-click the target. If the target requires parameters, then a dialog box prompts you for the parameter values.

The target will run as if you had entered it at the SDK command line.

To Import an SDK Project into Eclipse

If you have created a project using the SDK, then you can import it into Eclipse to make an Eclipse project.

1. Click File -> Import....

2. Select Existing Projects into Workspace and click Next>.

3. Select a root directory for the Eclipse project by clicking Browse... next to the Select root directory text field and browse to the sdk_home/projects/project/ directory.

4. Click Finish.

The SDK project is imported as an Eclipse project with the same name.

Building Projects Using the Plugin

You can use the native capabilities of Eclipse to build and debug your project. However, before doing so, check that the following line in the project .classpath configuration file uses the correct location of the source ZIP file:

<classpathentry
sourcepath="C:\sd31_home/releases/debs-6.7/reference/src.zip"
kind="lib" path="projectbuilds" />