Visage

Raj, the Chennai JUG lead, together with others from that JUG, is interested in Visage, the JavaFX script language closely associated with Stephen Chin.

He sent me the related lexer and parser and I started by having a look at them in the new version of ANTLRWorks being developed by Sam Harwell (who demonstrated it very effectively during JavaOne):

Notice how the lexer and parser are shown in a tree structure, as well as in a cool syntax diagram.

Next, I downloaded a bunch of JARs from here, so that packages such as from "com.sun.tools.mjavac" can be used, i.e., these are Visage-specific packages that aren't found anywhere except in the location below:

http://code.google.com/p/visage/wiki/GettingStarted

It turns out that there's also a Visage NetBeans plugin out there:

http://code.google.com/p/visage/source/browse/?repo=netbeans-plugin

Rather than recreating everything from scratch, i.e., generating ANTLR Java classes from the lexer and parser, I copied a lot of stuff from the site above and now a file Raj sent me looks as follows, i.e., basic syntax coloring is shown:

For anyone wanting to seriously support Visage in NetBeans IDE, I recommend downloading the existing Visage NetBeans plugin above, rather than creating everything yourself from scratch, and then figuring out how to use that code in some way, i.e., add the JARs I pointed to above, and work on its build.xml file, which could be frustrating in the beginning, but there's no point in recreating everything if everything already exists.

Comments:

This comment is not about Visage directly. But I'd like to draw attention to another alternative to declarative GUI definition for JavaFX. You can read about it in this blog: http://www.java.net/blog/sanjaydasgupta/archive/2012/08/03/fxjs-smarter-fxml-alternative.

This open-source project is hosted at http://fxjs.java.net/, and code examples can be seen in http://fxjs.java.net/MoreUIExamples.html.

Posted by guest on November 04, 2012 at 09:10 AM PST #

Geertjan,

The current issue with the existing netbeans plugin is that ot was designed for 6.x and support changed significantly for 7.x.

We are working on a 7.x plugin and the framework on that (as well as a detailed blog post) will be out shortly

Posted by guest on December 29, 2012 at 01:47 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today