Hi
It is possible to get the same functionality as the preprocessor without it.
You can use a final static variable, if the flag is false the compiler will
remove the redundant code.
An Example:
public final static boolean MIDP2 = true;
if (MIDP2){
setFullScreenMode(true);
}
The problem is when doing the same for importing package.
Tamir
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus Sinner
Sent: Thursday, October 04, 2007 11:09 AM
To: [email protected]
Subject: Re: [Eclipseme-users] Using #if preprocessor directive
Try the newest version. The old preprocessor was not able to use logical
expressions.
An example, how I use it in a Canvas class:
//#if JavaPlatform=="MIDP/2.0"
setFullScreenMode(true);
//#endif
:-)
Markus
Fahad Khowaja schrieb:
> Hi people,
>
> I have been using EclipseME 1.6.8 for some time now and love the
> preprocessor feature! Though recently I had to use logical expressions
> and I can't get the #if directive to work. I want the condition to be
> true when both symbols are defined. Can someone give an example please.
>
> Thank you.
>
> Regards,
>
> Fahad Khowaja
> J2ME Engineer
>
> *Radixs Pte Ltd
> *Direct: +65 6318 0542
> Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> Main: +65 6318 0500
> Fax: +65 6223 0373
> URL: www.radixs.com <http://www.radixs.com>
>
> 5 Shenton Way, #03-01/02, UIC Building, Singapore 068808
>
> *Disclaimer Notice:* This email, its content and any files transmitted
> with it are intended solely for the addressee(s) and may be confidential
> and privileged. Any unauthorised disclosure or use or dissemination of
> the information contained herein, either whole or partial, is
> prohibited. Radixs Pte Ltd (Radixs) cannot accept liability for any
> statements made which are clearly the sender's own and not expressly
> made on behalf of Radixs or one of its agents. If you have received this
> message in error, please notify the sender immediately, and delete this
> email from your computer system. Radixs has taken reasonable precaution
> to ensure no viruses are present in this email, however Radixs does not
> accept responsibility for any loss or damage arising from the use of
> this email or attachments.
>
> *Co. Reg. 200104892Z*
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users
--
*********************************
[EMAIL PROTECTED]
http://www.psitronic.de
psitronic IT-Solutions
Markus Sinner
W-Rathenau-Str. 14 - 68642 Bürstadt
Tel.: (+49)6206 / 963513
Fax: (+49)6206 / 963514
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users