Java Virtal Machine.net

[ News ] rss

March 17, 2010

Using JSF 2.x on Tomcat 6.x.. If you want to use JSF 2.x on a Tomcat 6.x server you have 2 options, see this short article.

More »

March 17, 2010

Declarative Hyperlinking Enhancements. I've spent some time fleshing out the code in the experimental declarative hyperlinking module I blogged about earlier. In that earlier entry I showed how you could use the new @Link annotation with existing URI templates either explicitly like ...

More »

March/2010
SunMonTueWedThuFriSat
 1 2 3 456
789 1011 12 13
14 15 16 1718 1920
21222324252627
28293031   

[ Archives News
for 'Developers' ]

home > news > developers > netbeans screenshot of the week #37: javascript 1.7 support

NetBeans Screenshot of the Week #37: JavaScript 1.7 Support

I just checked in support for JavaScript 1.7. This means that NetBeans will no longer give you syntax errors if you try to use the new language. Here are some screenshots. First, let's open a file using JavaScript 1.7 constructs: Obviously the file is using yield which is not recognized as a keyword, and in particular, this is just a syntax error - the parser was expecting a semicolon. But there's a little lightbulb... let's see what it says (type Alt-Enter or click on the lightbulb): Let's select the option to change the active language to 1.7. I could also open the JavaScript options dialog directly and set it to 1.7 as shown here: After applying the language change, the editor immediately re-lexes and reparses the file according to the new language. The errors are gone, and yield is now a proper keyword: Similarly, the let keyword can be used, as well as destructuring assignments, generators and iterators, etc. (See New In JavaScript 1.7 for more information). If you place the caret on function definitions, it will highlight all exit points, and this includes yields now. This work isn't done; I'd like it to be smarter about generators, and there may be some issues with scope handling. But at least the editor doesn't get in your way with false error messages now - you can start writing JavaScript 1.7 clean code. (This is with NetBeans 7.0 dev). In related news, I just heard from Tom Enebo that a lot of Ruby...


Date: November, 25 2008
Url: http://blogs.sun.com/tor/entry/netbeans_screenshot_of_the_week4


Others News

Leave a Reply

Name (required)
Mail (will not be published) (required)
Website
You don't see letters?

Enter the code shown above (required)


Related

©2002-2008Java-Virtual-Machine.net