Author Archive

GWT UiBinder support

Tuesday, January 26th, 2010

The first IntelliJ IDEA 9.0.2 EAP build will add support for UiBinder, new functionality introduced in GWT 2.0. IntelliJ IDEA will understand tags and attributes in ui.xml files:

Inconsistencies between ui.xml file and associated Java class will be highlighted:

You can jump from field to the corresponding tag by using icon on the gutter:

Also IDE provides actions to quickly create new ui.xml file with associated Java class (in Edit | New | Google Web Toolkit menu) and to generate @UiHandler method (in Code | Generate menu).

Expect new version EAP to be published shortly.

Update a Running JavaEE Application

Thursday, October 29th, 2009

Next Maia EAP build includes new action that lets you quickly update a running JavaEE application after you changed its code. To invoke it, either press Ctrl+F10, or click this button on the Run tool window bar:

IntelliJ IDEA will allow you to select what to update in application:

Settings are saved in a current Run Configuration, so you can change them later even if you select Don’t ask again option.

New Ways of Setting up Packaging Configurations

Monday, October 5th, 2009

IntelliJ IDEA 9 (Maia) brings a more powerful and flexible way to set up packaging configurations (artifacts) for your project. Artifacts are configured in Project Structure dialog:

Output layout of an artifact is displayed in a tree. You can edit it with Alt+Ins and Delete shortcuts, and by using drag-and-drop.

You can build artifact at any time from the main menu (Build | Build Artifact | <artifact name>), or you can automate it with the use of Build on make option in artifact settings, and Build Artifacts option in run configuration settings:

These features will be available in the next Maia EAP (around next Monday). Packaging configurations of existing JavaEE facets are migrated to artifacts automatically.

Upgrading Event Listeners to GWT 1.6

Friday, July 10th, 2009

Google Web Toolkit 1.6 replaces EventListener class with EventHandler, so the existing code base needs an upgrade. In most cases IntelliJ IDEA can do this automatically — all you need to do is to press Alt+Enter on a highlighted listener and select Replace quick-fix.


IntelliJ IDEA will then upgrade your code:


This feature is available in Maia builds that you can download from EAP.

Debugging JavaScript in Mozilla Firefox

Monday, June 29th, 2009

IntelliJ IDEA 9M1 supports debugging of JavaScript code in Mozilla Firefox. Just create a JavaScript Debug configuration, select Firefox from the Browser list and click OK:

IntelliJ IDEA automatically installs plugin for Mozilla Firefox and executes the configuration.
Note that you need to clear Make option under Before launch group before starting debugger to work around a bug that will be fixed in next Maia EAP.

Google App Engine Support

Friday, May 22nd, 2009

If you are developing a Java application for Google App Engine, try Google App Engine Integration plugin for IntelliJ IDEA. It will be bundled with the first Maia EAP, but you can download it right now and use with IntelliJ IDEA 8.x

After plugin is installed, start the New Project wizard, select Google App Engine and specify path to the App Engine SDK (you can download it from here, for example). IntelliJ IDEA will add all required descriptors, libraries and create a run configuration for your application, so you can quickly get started with its development.

Quick Navigation to Project Structure

Friday, March 27th, 2009

To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure.



IntelliJ IDEA will open the Project Structure dialog and jump to the required module.



This action works for files from libraries and JDK, too, and is available in every view that lists files — Project View, Changes tool window and so on.