An Eclipse Plugin for GWT code generation [message #805876] |
Fri, 24 February 2012 03:49  |
Eclipse User |
|
|
|
Hi,
I need to write an eclipse plugin which can generate some java source code for me.
My requirement is the following.
1) When right click on the project explorer, in should give me a new menu, like "GWT"
2) The menu can have sub menus like "Create Stub", etc.
3) Upon clicking the sub menu, a wizard need to be popped up, where in we can enter the package name, class name etc.
4) Upon Clicking finish of the wizard I need to genereate the java source code.
Can some tell me how I can acheive this or atleast point me to some good tutorials which can help me out.
I googled it but I am not able to get a perfect tutorial.
Thanks,
Sandy
|
|
|
Re: An Eclipse Plugin for GWT code generation [message #807971 is a reply to message #805876] |
Mon, 27 February 2012 03:45   |
Eclipse User |
|
|
|
Dear Sandy,
As you have discovered, there is no tutorial that describes exactly which button to click,for every problem that someone might have.
If we had that, we could probably stop programming ourselves alltogether.
In the same way, programming is more complicated than "google, copy/paste first hit, done".
Consider each point that you have as a separate problem, and try to solve it.
Then glue the code of each part together into one program.
I am quite sure your google journey gave you some starting points from which you can start.
Try the example, read the code until you fully understand why it works the way it does, and in particular, read the documentation of the classes that you use to see whether other useful methods exist.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.51948 seconds