How to use preprocessor? [message #33205] |
Thu, 23 July 2009 15:13  |
Eclipse User |
|
|
|
Hi
I've added this code in me j2me application
//#define SIEMENS
//#ifdef SIEMENS
import com.siemens.mp.io.file.FileConnection;
import com.siemens.mp.io.file.FileSystemRegistry;
//#else
import javax.microedition.io.file.FileConnection;
import javax.microedition.io.file.FileSystemRegistry;
//#endif
However, in Eclipse I have error
"The import javax.microedition.io.file.FileSystemRegistry collides with
another import statement"
So, how can I use preprocessor in Eclipse? Should I install and configure
Antenna for this?
PS I've switched on preprocessor support in project properties via Mobile
Tools for Java->Enable Preprocessing but this not help ;(
|
|
|
|
|
Re: How to use preprocessor? [message #33390 is a reply to message #33285] |
Fri, 24 July 2009 17:37  |
Eclipse User |
|
|
|
Hello, Diego!
Seems it helped (MTJ generates different code cause preprocessor
settings), thanks!
However, in Eclipse IDE editor I still have errors (and Quick Fixes
advices too) but Problems tab is empty.
So, last question is how to avoid errors in IDE editor?
|
|
|
Re: How to use preprocessor? [message #575309 is a reply to message #33205] |
Thu, 23 July 2009 16:13  |
Eclipse User |
|
|
|
Hi Andrey,
Please take a look at our documentation
( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .mtj.doc.user/html/gettingstarted/gettingstarted.html).
If still you have no success please send us another message!
Regards,
David Marques
Andrey wrote:
> Hi
> I've added this code in me j2me application
> //#define SIEMENS
> //#ifdef SIEMENS
> import com.siemens.mp.io.file.FileConnection;
> import com.siemens.mp.io.file.FileSystemRegistry;
> //#else
> import javax.microedition.io.file.FileConnection;
> import javax.microedition.io.file.FileSystemRegistry;
> //#endif
> However, in Eclipse I have error
> "The import javax.microedition.io.file.FileSystemRegistry collides with
> another import statement"
> So, how can I use preprocessor in Eclipse? Should I install and configure
> Antenna for this?
> PS I've switched on preprocessor support in project properties via Mobile
> Tools for Java->Enable Preprocessing but this not help ;(
|
|
|
|
Re: How to use preprocessor? [message #575396 is a reply to message #33285] |
Fri, 24 July 2009 17:37  |
Eclipse User |
|
|
|
Hello, Diego!
Seems it helped (MTJ generates different code cause preprocessor
settings), thanks!
However, in Eclipse IDE editor I still have errors (and Quick Fixes
advices too) but Problems tab is empty.
So, last question is how to avoid errors in IDE editor?
|
|
|
Powered by
FUDForum. Page generated in 0.05145 seconds