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.

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.

  1. Choose File > Import
  2. Choose Plug-in Development > Plug-ins and Fragments from the Import wizard page.


  3. 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.


  4. 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.


  5. 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.