Importing the SDK example and leavescan plug-ins

## Importing the SDK Example

You can import any of the plug-ins in Carbide.c++ and examine the source code. However, the SDK provides a plug-in you can import and examine as an example of Carbide.c++ API usage.

- The Examples plugin (com.nokia.carbide.cpp.sdk.examples) is part of the Carbide.c++ Development Kit (CDK). It provides examples of installing items in the Carbide menu, creating new projects programatically, and accessing project and Symbian build information. See below for instructions on how to enable the example menu commands inside Carbide.

You can import this and other plugins into your workspace and view/debug all the source to get a better understanding of the Carbide.c++ APIs in a functional plugin. Plesae see the page on setting up your development environment for information on how to import a source project.

Note that the example plugins were built with JRE1.5, you will likely receive errors with JRE1.6. Select Window > Preferences > Java > Installed JREs to add currently installed JREs and select the JRE to use.

When you are done importing you should have new plugins in your workspace and be able to view the sources for both plugin projects. Your workspace should look something like this:

### Adding a Carbide menu

The menu items contributed by the Examples plugin are not visible by default in the Carbide.c++ program. To show the missing menu, follow these steps:

1. In Carbide.c++ (not in your Eclipse Java development SDK) choose Window > Customize Perspective...
2. Select the Commands tab
3. Select the checkbox for Carbide.c++ Examples Action Set

Click OK, and you should now see the Carbide menu in the menu bar. You can now examine the source code and run it in the debugger. See debugging a debugging a Carbide.c++ plug-in for information on setting up a plug-in debug session.