I have a few native gwt methods in my java class that I would like to not use tab spacing for.
public static native int getScreenWidth() /*-{
return $wnd.screen.width;
}-*/;
The middle line is automatically tabbed whenever I have Eclipse format the code. I can’t find a setting to get rid of this tab. Is there a way to do this, or can I somehow have Eclipse not open these files with the GWT Java Editor?
AFAIK, the GWT Java Editor uses the formatting preferences for JavaScript when formatting JSNI blocks.