http://labs.adobe.com/technologies/coldfusion9/
What can extensions do?
Anything CF can!
• written w/ CFML and XML
• runs on a CF server
Common Uses
• code generation
• framework scaffolding
• server management / probes
• code analysis
• reporting
Add New Context Menus
• RDS View (databasees and tables)
• Outline View
• Resource View (projects and files)
Workspace Events
Installing a CFBuilder Extension
Preferences -> CF -> Extensions
Good practice to put extensions folder under CFIDE so they are separate from applications
ide_config.xml
- application details
- extensions are a simple zip archive
- optional collection of data during install
- responding to workspace events – onProjectCreate
- adding context menus
- filter with regEx to optionally appear
Collecting User Input
static input w/ native eclipse controls
types
- string
- dir
- boolean
- file
- password
- list
attributes
- name
- label
- tooltip
- required
- default
- checked
- pattern
- errorMessage
- helpMessage
keywords for default values
{$projectLocation}
- projectLocation
- projectName
- serverHome
- wwwroot
Handler Communication
- sends info via XML
Dynamic Input
- XML, HTML, AJAX, Flex, Eclipse SWT
- showResponse=”yes”
- response can be HTML or XML
Tips
- You can reload from prefs if you make changes to the xml
- Errors output to Eclipse logs (windows > show view > other > general > error log)
- You can also write your own log with cfLog
- Use CF to generate CF (use generated code as <:cf and rip out the :’s later)
- Adam’s Ext-Util.cfc
Post a Comment