views:

1530

answers:

1

How to use preprocessor directives in BlackBerry JDE plugin for eclipse?

+3  A: 

Within the eclipse config file (%ECLIPSE_HOME%\configuration\config.ini) make sure the following line exists.

osgi.framework.extensions=net.rim.eide.preprocessing.hook

With the current BlackBerry plugin (1.0.0.67) config line is added for you. I'm not sure about older versions of the plugin.

Also, checkout this Stack Overflow question for more information on the BlackBerry preprocessor.

Preprocessor directives supported by the RIM compiler

Fostah
Once we do this, how do we use the directives in our code? Is it similar to what Antenna provides?
Ram
Edited to show a link to another question that sheds more light. Hope it helps.
Fostah