Importing the SDK example and leavescan plug-ins
There are two example plugins you can import and examine as examples of Carbide.c++ API usage.
- The Examples plugin (com.nokia.carbide.cpp.sdk.examples) is part of the Carbide.c++ Plug-in SDK. 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.
- The leavescan plugin (com.nokia.carbide.cpp.leavescan) is part of the Carbide.c++ product installation with source code included.
The source code can help give you a basic understanding of how to access basic project configuration
settings from the Carbide.c++ APIs.
You can import these plugins into your workspace and view/debug all the source to get a better understanding of the
Carbide.c++ APIs in a functional plugin.
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.
- Choose File > Import
- Choose Plug-in Development > Plug-ins and Fragments from the Import wizard page.
- On the Import Plug-ins and Fragments pages you select import options. In the Import As group, select Projects with source folders.
In addition, note that The target platform (as specified in the Preferences)
checkbox should be enabled. This should be the path you specified previously in the Target Preferences.
- Finally, select the plugins you want to import. Here you select the
com.nokia.carbide.cpp.leavescan
and
com.nokia.carbide.cpp.sdk.examples
plugins.
- 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:
- In Carbide.c++ (not in your Eclipse Java development SDK) choose Window > Customize Perspective...
- Select the Commands tab
- Select the checkbox for Carbide.c++ Examples Action Set

Click OK, and you should now see the Carbide menu in the menu bar.