Tag Archives: Groovy

New in 10.5: Introduce Refactorings for Groovy

In the upcoming IntelliJ IDEA 10.5 some new Groovy refactorings will appear. The first of them is Introduce Parameter. It allows you to select any expression inside a method and make from it a new method parameter. All the usages … Continue reading

Posted in New Features | Tagged , , | 4 Comments

Grails: extracting text from GSP to resource bundle

By user requests we have added functionality for easy extraction of GSP text to resource bundles. To do this you can select a text fragment, press Alt+Enter and choose the intention “Extract selected text to messages.properties”: I18nize String dialog will … Continue reading

Posted in Tips & Tricks | Tagged , , , | 4 Comments

Grails: debugging GSP

Now IntelliJ IDEA X is able to debug GSPs. You can set breakpoints and view variable values or evaluate expressions.

Posted in Tips & Tricks | Tagged , , , | 10 Comments

Grails: GSP aware of model returned from controller

As you already know, we are working on GSP editing improvements in IntelliJ IDEA X. In particular, now the editor knows about the variables that the controller supplies to the view. Example: Consider an action returning a bookList variable: And … Continue reading

Posted in New Features | Tagged , , , | Leave a comment

Grails: completion of controller and action names

We have added more Grails-specific completion in IntelliJ Idea X. In particular, IntelliJ IDEA now knows about action and controller names in most places where they can appear. In the ‘controller’ and ‘action’ attributes of some GSP tags: In some … Continue reading

Posted in New Features | Tagged , , , | 2 Comments

Grails: Quick navigation between actions and views

IntelliJ Idea X adds quick navigation for Grails actions and GSP pages. Whenever an action has a same-named view, IDEA creates a gutter icon opposite to the action name. Click that icon and the corresponding page is opened: As for … Continue reading

Posted in New Features | Tagged , , , | 1 Comment

Groovy/Groovy++ object creation

Groovy‘s as keyword allows for some interesting features. In particular, it provides a convenient syntactic sugar for object creation: Point point = [4, 2] as Point KeyAdapter listener = [         keyTyped: { e -> … },         keyReleased: { e -> … Continue reading

Posted in New Features | Tagged , | 3 Comments

Groovy stacktrace folding

When you look at a typical Groovy stack trace, you usually see something like this: This is not terribly helpful, since there are only three lines from the actual source code. Everything else refers to Groovy’s internals. From now on, … Continue reading

Posted in New Features | Tagged , , | 19 Comments

New String-related Intentions for Groovy

With the latest Maia EAP Groovy language support is improved with several new GStrings intention actions. Now you can convert string concatenations to GStrings… …and back simply by pressing Alt+Enter, Enter. Also, IntelliJ IDEA is now aware of that braces … Continue reading

Posted in New Features | Tagged , , | Leave a comment

Groovy-related Configuration Changes

The next Maia EAP brings you massive changes in Groovy, Grails, Griffon, Gant & Gradle support, mostly affecting framework configuration. First, Grails/Griffon application options are available when you create a project or a module: You may also choose to import … Continue reading

Posted in New Features | Tagged , , , , , | 7 Comments