wagenknecht.org » Gunnar’s Weblog » Googlipse   Admin | Sign Out  
Weblog | Pictures

Googlipse

Friday, July 14th, 2006, 23:22:20 +0200, Gunnar Wagenknecht

Did you ever hear about GWT – the Google Web Toolkit? It’s a nice way of writing Ajax Web Clients in Java which run as JavaScript in the browser. Googlipse is an Eclipse plug-in that integrates very nice with Eclipse WTP. I tried it yesterday and was so excited about the clean and smooth integration that I decided to get my hands dirty and enhance it.

First, I changed the hard coded build path entry to the gwt-user.jar to a variable based one. Then I started prototyping a second WTP facet that can be attached to simple Java projects. The idea is to extract GWT modules into separate Java projects which can then be included by any web project. This setup is very useful because the GWT module project will contain only the minimalistic build path and will define the services which are then implemented in the web project. However, I still need to sort out some things before this is ready.

The last thing I changed is the project builder. The builder automatically generates the asynchronous interface of a remote service. I reworked it based on the JDT ASTRewrite API. This was a very nice exercise to get back to the JDT AST API which is very powerful. The enhanced version now also rewrites the JavaDoc of the generated interfaces. Oh and I also reworked the New GWT Module wizard and the New GWT Remote Service wizard based on the public JDT NewTypeWizardPage.

You can download the patched version here.

Update (2006-07-16): The support for including modules from other projects is now working including launching the GWT Browser in hosted mode with an external application server.

Update (2006-07-18): I recorded a small screen cast. You can download it here. But please bear with me about the quality. It’s rather poor. I was playing with CamStudio. If anybody knows about a good free recording software please send me a link.

8 Responses to “Googlipse”

  1. Johan Eriksson Says:

    Hi Gunnar,

    First of all big thanks for putting this together. However, I do have a small problem. When I create a new project and add a new GWT Module I cannot add that module to the list of included modules for the project. When I go to the project properties / Googlipse the list of available modules is empty. Would you happen to know why this would happen ?

    Thanks,

    /Johan/

  2. Gunnar Wagenknecht Says:

    Yes, sorry. I tried creating a screencast with Camstudio but I didn’t like it so I didn’t publish it. First you need to add the Java project as a utility jar to the web project. Right click on the web project and go to Properties. Select J2EE Dependencies and check the project that contains the modules. Then click Apply and OK and reopen the Properties page and go to the Googlipse properties. This time you click on Add… you should get a list of modules defined in the referenced projects.

  3. Johan Eriksson Says:

    OK, but if I just have one web-project, where I want to keep both my GWT client-stuff and my services (servlets).

    If I create a web-project and add a new GWT module, it does not appear on the list of included modules by default. By manually adding the path of the gwt.xml-file to the includedModules-property it shows up, but it doesn’t get compiled (the gwt-hosted.jsp file etc gets put in place, but the gwt-compiler never kicks in).

    Any ideas ?

  4. Gunnar Wagenknecht Says:

    Oh, now I understand what you want. :) Well, this is a feature which is not support yet. Logically speaking, you only need to include something that is not already there. So I might have to change the properties page as well (from a usability point of view).

    Currently, the requirement for running inside an external application server is that all modules are defined in included projects. I think that is too strict. But hey, that’s also a good example of how Open Source development work. You need something, you implement it. I just didn’t need it. ;)

  5. Johan Eriksson Says:

    Gunnar – thanks for clarifying, appreciate your help. However, even using two projects (one java-project, one web-project including the java-project) I still cannot see the GWT module in the list… Could you perhaps describe the steps needed to get set up deploying a project to an external server ?

    /Johan/

  6. Gunnar Wagenknecht Says:

    Ok, updated the patch. I also recorded a small screen cast. However, please bear with me about the quality. I’m experimenting with the open source CamStudio version. But it’s rather poor.

    BTW, until today I didn’t hear anything from the plug-in author. The patch is getting bigger now and it would be nice if I could know what he thinks about it. He didn’t respond to any of my mails so far. :(

  7. Wagenknecht.org | Gunnar’s Weblog » Blog Archive » Yet another GWT Plug-in Says:

    [...] Well, a while back I posted about a nice GWT plug-in called Googlipse. I liked it so much that I started enhancing it. So I created a local playground in my SVN repository and build a few things around it. [...]

  8. GWT Site » Blog Archive » GWT Tooling released Says:

    [...] Gunnar Wagenknecht has released another GWT Eclipse plugin. Gunnar had previously made some patches to the Googlipse project but has now decided to start his own. He has a nice screencast that shows the plugin in action. Source code is available. [...]

Leave a Reply

CAPTCHA image

Note, you can use these XHTML tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

Gunnar’s Weblog is proudly powered by WordPress and valid XHTML and CSS (hopefully...).
Entries (RSS) and Comments (RSS). Spawned in 0.491 seconds.