+1 from me: see http://code.google.com/p/google-web-toolkit/issues/detail?id=4599
On Mar 22, 4:46 pm, Raphael André Bauer <raphael.andre.ba...@gmail.com> wrote: > Hi, > > we are using InterfaceGenerator quite heavily to generate interfaces > from our css files. Works quite nice. > > But there is one thing I do not really understand. > If you generate an interface the default modifier is not set - meaning > that the modifier is via default "protected". > > Therefore I am getting visibility problems, when I want to access this > interface from other modules / packages. > > What I do in my ResourceBundle is: > > public interface MyResourceBundle extends ClientBundle { > @Source("Reset.css") > public Reset reset(); > > } > > Error message is: > "Reset is defined in an inaccessible class or interface" > > Well. Makes total sense as "Reset" is without visibility modifier. > > My workaround currently is to use another interface that extends the > automatically generated interface: > public interface MyResourceBundle extends ClientBundle { > @Source("Reset.css") > public ResetPublic reset(); > public interface ResetPublic extends Reset {} > > } > > Imho the workaround is not nice. And my question is: Why are generated > interfaces always without visibility modifier? > Or is there any other way to omit that problem? > > Thanks! > > Raphael -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.