The Nokia WRT Extension for Dreamweaver CS4 project that I’ve been working on for the past few months has gone live. The extension can be downloaded from Nokia WRT Forums and Adobe Exchange.
The Nokia Extension allows users to author, validate, package and deploy Nokia WRT widgets.
The validation, packaging and deployment features were the most challenging to implement.
The validation calls the W3C Markup Validation Service which reads the DocType tag in the info.plist (widget configuration file) file to determine the DTD file that is used to validate the info.plist. Documentation on how to use the W3C Validator can be found here.
The packager used for the extension is a Java class written by Alexey Mykhaylov and his team from Xplorex; the packager is used to compress the files so that they can be deployed to Nokia S60 phones.
The deployment feature required the extension to send packaged widgets to a bluetooth paired phone. To implment this functionality I had to lean on Alexey and his team to create a Java wrapper so that I could use the BlueCove Java library.
I’d like to give thanks:
- Andrew Odri from Konductor for helping me out with his knowledge the Dreamweaver API.
- Alexey Mykhaylov and Xplorex for their assistance with the Java integration.
- Scott Fegette and Chris Bank from Adobe for taking the time to answer my questions.
- Michael Bierman and Matt Evered from Nokia for their patience and professionalism when managing the project under tight deadlines.
- Otto Salminen and Timo Klinga from Sasken for their hard work in finding most (if not all) of my bugs.
- Derek Zarbrook from Xplorex for acting as the contact between Nokia and Nitobi.
- My colleague Chris Stone for his awesome UX work and managing the project from Nitobi‘s side.
For the last couple of months, I’ve been tinkering around in Adobe Dreamweaver’s Extension APIs and uncovering alot of hidden or undocumented features in Dreamweaver’s API. This will be my first post in a series regarding the Dreamweaver API. In this post I will be discussing the hidden extension eventhandlers in the Dreamweaver API.
There are three eventhandlers:
- after save event – this is triggered when the changes to a file have been saved.
- before save event – this is triggered before the changes to a file have been saved.
- on open event – this is triggered when Dreamweaver (and when documents) are opened.
You can find the global events in Dreamweaver’s default Commands directory.
Mac: Macintosh HD:Applications:Adobe Dreamweaver CS4:configuration:Commands
Windows: C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\Commands
The eventhandler files are:
I’ve created a very simple example extension that demonstrates how the eventhandlers work. The .mxp installer and source code can be downloaded at the end of this post. The example extension will install into your user account’s application data folder.
Mac: Macintosh HD:Users:<userName>:Library:Application Support:Adobe:Dreamweaver CS4:en_US:Configuration:Commands
Windows: C:\Documents and Settings\<userName>\Application Data\Adobe\Dreamweaver CS4\en_US\Configuration\Commands
Link to source code download.