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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.