Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>In the final release of Groovy-Eclipse 2.1.1, just 6 weeks after our previous release of 2.1.0, there are many exciting new features to look forward to.</p> <p>You can use the following update site to install this release. To install, copy and paste this link into your Eclipse update manager:</p> <table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="title=Groovy-Eclipse update site for Eclipse 3.6" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86dGl0bGU9R3Jvb3Z5LUVjbGlwc2UgdXBkYXRlIHNpdGUgZm9yIEVjbGlwc2UgMy42fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"> <p><code><a href="http://dist.springsource.org/release/GRECLIPSE/e3.6/">http://dist.springsource.org/release/GRECLIPSE/e3.6/</a></code></p></td></tr></table> <p>And a zipped version of the update site is available at:</p> <table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="title=Zipped Groovy-Eclipse update site for Eclipse 3.6" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86dGl0bGU9WmlwcGVkIEdyb292eS1FY2xpcHNlIHVwZGF0ZSBzaXRlIGZvciBFY2xpcHNlIDMuNn0&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"> <p><code><a href="http://dist.springsource.org/release/GRECLIPSE/e3.6/archive-2.1.1.xx-20101215-2100-e36.zip">http://dist.springsource.org/release/GRECLIPSE/e3.6/archive-2.1.1.xx-20101215-2100-e36.zip</a></code></p></td></tr></table> <p>You can install from the zip by pointing your Eclipse update manager to the downloaded zip file and following the installation instructions provided by the update manager.</p> <h3>Outline</h3> <img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e3RvYzptYXhMZXZlbD00fGluZGVudD0yMHB4fHN0eWxlPWRpc2N8ZXhjbHVkZT1PdXRsaW5lfQ&locale=en_GB&version=2" data-macro-name="toc" data-macro-parameters="exclude=Outline|indent=20px|maxLevel=4|style=disc"> <h3>Inferencing inside of closures</h3> <p>Type inferencing and content assist inside of closures now uses the type of calling method as the type of <code>this</code>. For example, the following code snippet with use <code>User</code> as the type of <code>this</code> inside the closure:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/closure_inferencing.png?version=1&modificationDate=1369529871762" data-image-src="/download/attachments/231080220/closure_inferencing.png?version=1&modificationDate=1369529871762" data-linked-resource-id="231376316" data-linked-resource-type="attachment" data-linked-resource-default-alias="closure_inferencing.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > closure_inferencing.png"></p> <p>Similarly, content assist will work as expected:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/closure_content_assist.png?version=1&modificationDate=1369529871760" data-image-src="/download/attachments/231080220/closure_content_assist.png?version=1&modificationDate=1369529871760" data-linked-resource-id="231376315" data-linked-resource-type="attachment" data-linked-resource-default-alias="closure_content_assist.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > closure_content_assist.png"></p> <p>For more information, see <a href="http://jira.codehaus.org/browse/GRECLIPSE-916">GRECLIPSE-916</a>.</p> <h3>Quickfixes</h3> <p>We now have quickfixes in the Groovy editor, see <a href="http://jira.codehaus.org/browse/GRECLIPSE-909">GRECLIPSE-909</a>. In this release, we introduce two quickfixes: add import (<a href="http://jira.codehaus.org/browse/GRECLIPSE-911">GRECLIPSE-911</a>) and convert to Groovy file (<a href="http://jira.codehaus.org/browse/GRECLIPSE-910">GRECLIPSE-910</a>).</p> <p>The quickfixes can be invoked like any other standard Java quickfix, either by clicking on the light bulb in the gutter:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/quickfix_imports.png?version=1&modificationDate=1369529871752" data-image-src="/download/attachments/231080220/quickfix_imports.png?version=1&modificationDate=1369529871752" data-linked-resource-id="231376314" data-linked-resource-type="attachment" data-linked-resource-default-alias="quickfix_imports.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > quickfix_imports.png"></p> <p>By hovering over the exception:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/quickfix_imports2.png?version=1&modificationDate=1369529871745" data-image-src="/download/attachments/231080220/quickfix_imports2.png?version=1&modificationDate=1369529871745" data-linked-resource-id="231376313" data-linked-resource-type="attachment" data-linked-resource-default-alias="quickfix_imports2.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > quickfix_imports2.png"></p> <p>By using the keyboard shortcut (CTRL-1 or CMD-1 on macs), or through the problems view:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/quickfix_imports3.png?version=1&modificationDate=1369529871737" data-image-src="/download/attachments/231080220/quickfix_imports3.png?version=1&modificationDate=1369529871737" data-linked-resource-id="231376312" data-linked-resource-type="attachment" data-linked-resource-default-alias="quickfix_imports3.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > quickfix_imports3.png"></p> <p>The convert to Groovy file quick fix is available whenever there is an error in your Java code that looks like Groovy syntax (for example, a missing semi-colon):</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/quickfix_convert.png?version=1&modificationDate=1369529871731" data-image-src="/download/attachments/231080220/quickfix_convert.png?version=1&modificationDate=1369529871731" data-linked-resource-id="231376311" data-linked-resource-type="attachment" data-linked-resource-default-alias="quickfix_convert.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > quickfix_convert.png"></p> <h3>Inferencing of statically imported fields and methods</h3> <p>Statically imported fields and methods are now available from content assist and in the inferencing engine.</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/static_imports.png?version=1&modificationDate=1369529871723" data-image-src="/download/attachments/231080220/static_imports.png?version=1&modificationDate=1369529871723" data-linked-resource-id="231376310" data-linked-resource-type="attachment" data-linked-resource-default-alias="static_imports.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > static_imports.png"></p> <p>See <a href="http://jira.codehaus.org/browse/GRECLIPSE-698">GRECLIPSE-698</a> for more information.</p> <h3>Content assist for Constructors</h3> <p>Content assist now includes appropriate constructors when invoked in front of a <code>new</code> keyword. </p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/constructor_content_assist.png?version=1&modificationDate=1369529871719" data-image-src="/download/attachments/231080220/constructor_content_assist.png?version=1&modificationDate=1369529871719" data-linked-resource-id="231376309" data-linked-resource-type="attachment" data-linked-resource-default-alias="constructor_content_assist.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > constructor_content_assist.png"></p> <p>See <a href="http://jira.codehaus.org/browse/GRECLIPSE-839">GRECLIPSE-839</a>.</p> <h3>Improved semantic highlighting</h3> <p>Semantic highlighting now highlights field references, static references, and deprecated references as shown in the example below:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/semantic_highlighting.png?version=1&modificationDate=1369529871711" data-image-src="/download/attachments/231080220/semantic_highlighting.png?version=1&modificationDate=1369529871711" data-linked-resource-id="231376308" data-linked-resource-type="attachment" data-linked-resource-default-alias="semantic_highlighting.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > semantic_highlighting.png"></p> <p>See <a href="http://jira.codehaus.org/browse/GRECLIPSE-869">GRECLIPSE-869</a> and <a href="http://jira.codehaus.org/browse/GRECLIPSE-708">GRECLIPSE-708</a>.</p> <h3>Organize imports improvements</h3> <p>Organize imports in Groovy scripts now respects the settings in <code>Preferences -> Java -> Code Style -> Organize Imports</code>. Imports are sorted appropriately and grouped according to preferences. Also, semi-colons are now automatically removed. </p> <p>For example, the following simple script is originally:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/organize_imports_before.png?version=1&modificationDate=1369529871702" data-image-src="/download/attachments/231080220/organize_imports_before.png?version=1&modificationDate=1369529871702" data-linked-resource-id="231376307" data-linked-resource-type="attachment" data-linked-resource-default-alias="organize_imports_before.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > organize_imports_before.png"></p> <p>And becomes this after organize imports is invoked:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/organize_imports_after.png?version=1&modificationDate=1369529871690" data-image-src="/download/attachments/231080220/organize_imports_after.png?version=1&modificationDate=1369529871690" data-linked-resource-id="231376306" data-linked-resource-type="attachment" data-linked-resource-default-alias="organize_imports_after.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > organize_imports_after.png"></p> <p>See <a href="http://jira.codehaus.org/browse/GRECLIPSE-498">GRECLIPSE-498</a>.</p> <h3>Create Groovy Script</h3> <p>The New Groovy Class wizard now has an option to create a Groovy script instead of a standard class. To create a script, select the "Create Script" check box in the New Groovy class wizard as shown here:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/new_groovy_script.png?version=1&modificationDate=1369529871670" data-image-src="/download/attachments/231080220/new_groovy_script.png?version=1&modificationDate=1369529871670" data-linked-resource-id="231376305" data-linked-resource-type="attachment" data-linked-resource-default-alias="new_groovy_script.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > new_groovy_script.png"></p> <p>See <a href="http://jira.codehaus.org/browse/GRECLIPSE-485">GRECLIPSE-485</a>.</p> <h3>Outline view for binary Groovy types</h3> <p>When binary Groovy types are shown in the outline view and the package explorer all synthetic methods and fields are filtered from the view. See <a href="http://jira.codehaus.org/browse/GRECLIPSE-865">GRECLIPSE-865</a>.</p> <h3>Bookmarks and Tasks</h3> <p>It is now possible to add a bookmark or a task in a Groovy file by right-clicking on the editor ruler and selecting '<code>Add Bookmark...</code>' or '<code>Add Task...</code>' as shown here:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/add_bookmark_task.png?version=1&modificationDate=1369529871658" data-image-src="/download/attachments/231080220/add_bookmark_task.png?version=1&modificationDate=1369529871658" data-linked-resource-id="231376304" data-linked-resource-type="attachment" data-linked-resource-default-alias="add_bookmark_task.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > add_bookmark_task.png"></p> <p>See <a href="http://jira.codehaus.org/browse/GRECLIPSE-853">GRECLIPSE-853</a>.</p> <h3>Groovy Event Console</h3> <p>Groovy-Eclipse now ships with a Groovy event console that prints out information of the internal workings of Groovy-Eclipse. You can access the console from the console view and clicking on the <em>Open Console</em> button:</p> <p><img class="confluence-embedded-image confluence-content-image-border image-center" src="/download/attachments/231080220/console.png?version=1&modificationDate=1369529871642" data-image-src="/download/attachments/231080220/console.png?version=1&modificationDate=1369529871642" data-linked-resource-id="231376303" data-linked-resource-type="attachment" data-linked-resource-default-alias="console.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080220" title="null > console.png"></p> <p>Most of this information is for debugging of Groovy-Eclipse itself and will be used in the future to help diagnose problems on users' machines.</p> <h3>Compatibility</h3> <p>Groovy-Eclipse 2.1.1.RC1 includes Groovy 1.7.5 and is installable on Eclipse 3.6.0 and 3.6.1. There are no plans to release a 3.5 version of this release.</p> <h3>Bug fixes</h3> <p>Over <a href="http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+GRECLIPSE+AND+fixVersion+%3D+%222.1.1Release%22+AND+status+%3D+Resolved+ORDER+BY+priority+DESC">65 issues</a> have been addressed for this release.</p> <h3>Thanks!</h3> <p>The Groovy-Eclipse team would like to thank Nieraj Singh for his excellent work on the new Groovy-Eclipse Quick Fix feature. We'd also like to thank the community for continuing to provide feedback, raising issues, and for telling us what you need. Keep it up! You are what keeps this project alive.</p> <h3>What's next?</h3> <p>We are planning the 2.1.2 release for March 2011. If you wish to join the discussion about Groovy-Eclipse then please sign up for the <a href="http://xircles.codehaus.org/manage_email/eclipse-plugin-user@groovy.codehaus.org">mailing list</a>. For any issues you have (or enhancements you would like to see), please raise them in our <a href="http://jira.codehaus.org/browse/GRECLIPSE">issue tracker</a>.</p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced