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