Wombat IDE - Stopping and syntax editing

A few new features today in r170, a stop button and a dialog to select syntax options.

First, the stop button. There’s one thing that I’ve been meaning to work on for quite a while: the ability to stop code that is currently running. To that end, I’ve added a new button to the interface (highlighted below) that will do exactly that. At the moment, pretty much all that it does is request that the currently running Kawa thread will stop. It isn’t perfect, but it’s better than nothing.

Since I haven’t done this yet, I’ll go ahead and go through all of the buttons available. From left to right, the first block is New, Open, Save, and Close. The next set are Run (which will run the current file using load, shortcut defaults to F5), Stop, Format (which will auto-indent your code, shortcut defaults to F6), and Reset (which will reset the Scheme environment to the default one, for example if you accidently (define + -)). As a side note, the Icons are from a set available for free use (see below).

Here’s an example of the automatic formatting:

Usually, this shouldn’t be necessary. The same formatting will be applied just as you type. But if you copy/paste code (for example), this will fix the formatting for you to whatever indentation you have defined in the syntax dialog.

Speaking of which, the syntax dialog:

Essentially, it’s just a list of keywords, each with an indentation value (the default is 2). The interesting part was working with the Java Swing JTable API, making it so that all changes to the table were automatically synchronized with the back-end data structure. It’s not a style of coding that I’m particularly used to, but it seems like it will definitely be something interesting to have learned.

Icon License:

http://www.freeiconsweb.com/Free-Downloads.asp?id=607

LED Icon Set v1.0 are designed for web designers/developers by Marcis Gasuns,  Siberia. These .png icons make a professionally looking icon set and are  totally free.

You can do whatever you want with these icons (use on web or in desktop  applications) as long as you don’t pass them off as your own and remove this readme file. A credit statement and a link back to http://led24.de/iconset/ or http://led24.de/ would be appreciated.