I work at a company that uses GWT for most of their projects, and in working with Eclipse there, I have noticed that when I add a new method to a *Service
interface (eg, public Foo getFoo()
) that it would automatically create an async version of that method in the *ServiceAsync
Interface, and make an empty stub method in the *ServiceImpl
class. Now that I'm working on my own projects at home using Eclipse Luna and the Google Plugin for Eclipse, I notice that this behavior is not happening. Eclipse does seem to be able to notice that the Async interface is missing a given method, but when I hit ctrl-s, it's not automagically making the changes for me.
Is there a configuration option I'm missing to add this behavior?
Make sure that you enabled GWT in the properties of the project that has your
*Service
classes:Project
->Properties
->Google
->Web Toolkit
->Use Google Web Toolkit
. This will enable the feature syncing services and their async versions.As for setting it up to do automagically on save - you can set it up in
Window
->Preferences
->Java
->Editor
->Save Actions
. But I don't see anything there that would allow for the behavior you desire. Maybe you can cross check what you have there with your Eclipse configuration at work?