Author Login
Post Reply
Hi all,
The latest groovy-eclipse snapshot contains a few new features that
you might be interested in and I would like some feedback on.
1. Inferencing search:
Find references and other kinds of Java search now uses inferencing to
find Groovy elements. For example, in the following code,
CTRL-Shift-G (find references) will properly locate all uses of the
x1() method, but will distinguish between First.x1() and Second.x1():
class First {
def x1 () { x1() }
}
class Second {
def x1 () { x1() }
}
def val = new First()
val.x1()
val = new Second()
val.x1()
This functionality is basic, but will be expanded on soon. Next, I
will include category search, and also provide extension points so
that Grails (and other DSLs) can provide their own inferencing. Also,
this functionality will become the foundation of all inferencing
throughout Groovy-Eclipse and will replace the current inferencing for
content assist and open type, so I need to get this right. :)
2. Type content assist.
Content assist in scripts and closures now include type proposals. I
had to disable JDT's type proposals (which only worked inside of
methods and classes) and replace it with a custom implementation that
will work anywhere.
Import statements will be properly generated if required, and fully
qualified names will be used if necessary. However, aliasing is not
fully supported.
3. Organize imports
Organize imports now is cognizant of generic types and type
parameters. Also, aliasing is supported.
Please provide feedback and I will continue to improve on functionality.
--a
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email