How to use preprocessor directives in BlackBerry JDE plugin for eclipse?
Fostah
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.
来源:https://stackoverflow.com/questions/1383277/using-preprocessor-directives-in-blackberry-jde-plugin-for-eclipse