Preview the Illudium Connector Bolt Extension
Posted on Jun 16, 2009
You may have read or heard about the announcement that Bolt (ColdFusion's new IDE) will allow you to write your own extensions (Ray has talked about his extensions recently). I personally don't think enough fuss has been made about this feature, probably because people don't know a lot about them yet. To clarify, you can create fully dynamic extensions with CFML - no need to learn any of the internals of Eclipse - and then add these onto things like the file view or the RDS DataView. When I first heard about this, I thought this would be a great way to tie an existing installation of the Illudium PU-36 Code Generator into the IDE within the RDS DataView. That extension is currently available on RIAForge for anyone with access to Bolt right now or, if you don't yet have access, its there for when a public beta happens (no, I don't have a clue when that might be).
In general writing extensions is pretty easy, and I hope to talk about it more down the road. This particular extension had some complications. One of those was that the existing API for Illudium uses your ColdFusion Administrator password to access the AdminAPI for datasource names and types. Since you already enter that to access the RDS panels, it seemed silly and redundant of me to ask it again. Therefore, I bypass much of the existing service and get the information I need via the current code utilizing <cfdbinfo>. It's a bit of a hack, but until I get around to rewriting the Illudium API, it'll have to suffice. You do need to have a working copy of Illudium installed on your local machine for this plugin to work however.
Anyway, if you are curious what this extension looks like in action, click the image below and it will show you a video I made with Jing that shows me using the extension to generate code against the default Illudium template. The panel that comes up with the standard form for generating with Illudium does indeed populate the list of templates dynamically at runtime - that's the beauty of these extensions being built in CFML. I am really excited to see what people build for Bolt extensions as I think these initial ones are only going to be the tip of the iceberg in terms of what's possible.
Comments
Posted By Joshua / Posted on 06/16/2009 at 3:22 PM
Cool demo. More importantly though, will it make my mouse click that loud too?
Posted By anonymous / Posted on 06/16/2009 at 3:23 PM
Very cool, Brian! Nice to have it integrated right into the IDE. I, too, am excited to see what people will come up with. I'm sure there is some great possibility for tight integration with frameworks, among other things...
Posted By Adam Tuttle / Posted on 06/16/2009 at 3:26 PM
@Adam - I actually have another plugin posted on RIAForge which I'll talk about next that actually has some basic framework integration. It's simple but useful.
Posted By Brian Rinaldi / Posted on 06/16/2009 at 3:37 PM
Posted By Reinhard Jung / Posted on 07/15/2009 at 10:00 PM
This is some really cool stuff!!! Thanks for sharing!!!
Posted By Stephen Weyrick / Posted on 07/27/2009 at 3:48 PM
looks great. Thanks for sharing.
Posted By John Gag / Posted on 07/27/2009 at 4:10 PM
I like the illudium generator and your connector very much!
But i had some problems because the dbtype in the connector is set to scorpio and i use mssql. It should be possible to dynamically set the dbtype.
Like in cfcgenerator com.cf.model.adminAPI.adminAPIFacade.driverOrClassToType()
Posted By Stefan Rölli / Posted on 09/18/2009 at 9:33 AM
Because the connector uses a "hack" of sorts, it always has to go through the cfdbinfo based database connector. If you ran this in the regular Flex-based interface, it would use the MSSQL connector.
For what its worth, I am already working on a revamped connector that would completely revise how all this works but I don't anticipate it being complete too soon.
Posted By Brian Rinaldi / Posted on 09/18/2009 at 9:36 AM
