I've done both approaches. I started creating UiBinder ui.xml files in the resources folder separate from java files (same package name). This helps to cleanly separate .java from other types of files just like I do for css/etc. However, I think both eclipse and IntelliJ create the pair of files (.java, and ui.xml) in the same folder by default (using New->UiBinder...) which is an annoyance if you have to move one every time, unless you create them from scratch. Haven't investigated if this default behavior can be modified, because I changed my ways and now put them on the same folder along with .java files because I've also found that IntelliJ sometimes complains about them being separate and even if it still works, I hate seeing some warnings/red text in the editor. It's just more practical to have them together.
On Tuesday, December 15, 2015 at 1:52:50 AM UTC-7, Thomas Broyer wrote:
-- On Tuesday, December 15, 2015 at 1:52:50 AM UTC-7, Thomas Broyer wrote:
On Tuesday, December 15, 2015 at 4:43:09 AM UTC+1, Luke Last wrote:Here's my quick stab at these, hope it helps.1. I've never seen this done differently, and personally I find it helpful to have them in the same package.The need to be in the same package (unless you use @UiTemplate), but that does not necessarily mean they have to be in the same folder.I personally like to put everything in src/main/java but YMMV; others prefer src/main/resources.Anyway, this is a Maven/Gradle issue, GWT proper doesn't care (as long as both are somehow in the classpath)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment