Hi,
Will the new preprocessing functionality comment out conditional code in the 
Eclipse editor so the conditional code doesn't break the syntax highlighting? 
For example, consider this code:

//#ifdef FULLSCREEN
        public MyConstructor(MIDlet m) {
                _midlet = m;
                setFullScreenMode(true);        
        }
//#else
        public MyConstructor(MIDlet m) {
                _midlet = m;
        }
//#endif

(I know that there are a lot of reasons you wouldn't do it exactly like this 
but this is just a simple example to illustrate a point)

The question is, if I create a symbol set named MIDP20 and add the definition 
FULLSCREEN to it and associate the symbol set MIDP20 with my project, then will 
I see the following in the editor, without seeing syntax warnings:

//#ifdef FULLSCREEN
        public MyConstructor(MIDlet m) {
                _midlet = m;
                setFullScreenMode(true);        
        }
//#else
//      public MyConstructor(MIDlet m) {
//              _midlet = m;
//      }
//#endif

(second part is now commented out for me in the eclise editor)

And then presumably I could either remove the definition FULLSCREEN from the 
symbol set MIDP20, or else associate my project with a different symbol set 
that doesn't define FULLSCREEN, and I would instead see the following:

//#ifdef FULLSCREEN
//      public MyConstructor(MIDlet m) {
//              _midlet = m;
//              setFullScreenMode(true);        
//      }
//#else
        public MyConstructor(MIDlet m) {
                _midlet = m;
        }
//#endif


Does the EclipseME PP functionality do this?

Thanks




______________________________________________________________________
This email is intended for the recipients only and should not be copied, 
forwarded or otherwise distributed to third parties without the consent of the 
original author.
______________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to