Unfortunately, I'm well aware of the downfalls of the current solution. After taking a look around the Java editor code, it is unclear how to make the editor aware of the preprocessing directives. It is certainly on my list to try to solve that problem though.
Omry Yadan wrote: > Thanks for the overview. > > From the user's perspective, this solution is a step in the right > direction. > > its missing some syntax highlighting (show 'hidden' lines in a > 'disabled' color and also make correct syntactic analysis, IE, not to > show syntax errors for: > > //#ifdef FOO > > class Bar extends Baz > > #elseif > > class Bar extends Zab > > #endif > > > but I am sure you are aware of this issue. > > BTW: I think this functionality might be added via the mechanism that > allow eclipse to support multiple variants of the Java (1.3 vs 1.4 vs > 1.5 etc), although I am not sure how simple/hard it will be because > those probably comes with AST of the java structure, and not lines-based > (like a preprocessor). > > > from the technical point of view, I like it better than the multiple > projects, because its transparent to the user - although its a hack that > might blow up under some conditions (can't think of anything specific atm). > > hopefully eclipse will introduce real support for preprocessing some > time soon and we will be able to dump this :). > > > The advantage of the in-place code rewrite is that its gives better user > experience in the two aspects I mentioned before (syntax highlighting > and analysis), but once you got those two covered your solution will be > superior - so I am glad you are pushing in that direction. > > > Craig Setera wrote: > > > ------------------------------------------------------------------------- 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
