Scala for NetBeans Screenshot#5: In-Place Refactoring
I've got Scala's semantic analysis more tightly integrated into NetBeans' Schliemann module. The first benefit is In-Place Refactoring (Instant Rename).
On the following screenshots, first, you put caret on a variable name ("scope", for example), the occurrences of this variable will be hi-lighted. Then, press key Ctrl+R, the highlighting color will be changed with meaning of ready for rename.
Just type or modify the name to new one, then press Enter. The occurrences of "scope" will be changed to new name, for example: "scope1".
And, YES, the Erlang for NetBeans will also get this benefit.
Posted at 07:56PM Jan 09, 2008 by dcaoyuan in NetBeans | Comments[6]



So the question is: when a new download will be available? :-)
I've also noticed that in the current version expressions outside a class/object are not recognized, although they are common in scripts.
Posted by Michael Nascimento Santos on January 10, 2008 at 01:48 AM PST #
How would some one build the latest from the netbean's CVS repository? Do you have to grab everything just to build the module?
Posted by Daniel Green on January 10, 2008 at 05:12 AM PST #
Hi,
I code in my spare time, there should be a new version in about 2 weeks.
I'll try to add these modules to auto-update site in the near future.
To build last from netbeans' CVS repository, it's better to grab everything, otherwise, you need to update your current IDE to newest dependent modules.
Michael, can you give me an example code that with expressions outside a class/object are not recognized?
Posted by Caoyuan on January 10, 2008 at 08:06 AM PST #
I tried adding the directory names to cluster.properties, but the modules still didn't seem to show up in netbeans when I started it.
So instead, I've been building netbeans from CVS, and then building the relevant nbms manually (languages/execution, and languages/scala/*) with ant, but having to install them in the GUI.
The rate of progress you're making on this is amazing. Hope you realise it's very much appreciated.
Posted by mart on January 11, 2008 at 02:04 AM PST #
looks nice. would love to download your latest stuff. i just tried out the eclipse plug-in and it colorizes pretty well, but i think your features set is well ahead of that project.
best of luck - and hey, where is your tip jar? how can we incentive-ize you to spend more time on this :)
Posted by jherber on January 11, 2008 at 04:39 AM PST #
Try to add any expression outside a class / object, such as println. It's possible to run it with the scala command line tool, but not inside the IDE.
I've also noted case is not being properly parsed when negative numbers are used, such as case -1 => doSomething() .
Finally, indentation is broken if there are comments in the source file.
Posted by Michael Nascimento Santos on January 23, 2008 at 02:34 AM PST #