AdobeBridgeCS5SDK

Class BasicExtensionHandler

Object
   |
   +--BasicExtensionHandler

class BasicExtensionHandler


Demonstrates a basic implementation of a node-handling extension, in which the model is read-only.

Usage

  1. Make sure the icon files required by this sample are in the ./resources folder (BEHFileIconxx.png)
  2. Execute the snippet in the ExtendScript Toolkit (see Readme.txt) with Bridge CS5 as the target- you can do this only once, then you must restart Bridge.
  3. In Bridge inspect in the Favorites panel and select the new icon added, which should be named "BERoot".
  4. Navigate through the node hierarchy in the Content pane
  5. As each is selected inspect the JavaScript console in the ESTK to view the Thumbnail's URI.

Description

Shows how to implement an ExtensionHandler and ExtensionModel, using two supporting classes, SDKSystem and SDKNode.

The main function, run(), creates several nodes of the new type, and one manager object. It stores the node-identifying prefix and root node in the manager object.

The function creates the ExtensionHandler object, whose definition includes the 'makeModel()' method, which Bridge uses to create the ExtensionModel object at node-display time. The function registers the ExtensionHandler, associating it with the node-identifying prefix.

These nodes have no real capabilities, so the hierarchy is read-only. See the Bridge JavaScript Guide for more details of node-handling mechanisms you can implement.

See:

Defined in BasicExtensionHandler.jsx


Field Summary
 String requiredContext
          The context in which this sample can run.
 
Constructor Summary
BasicExtensionHandler()
           
 
Method Summary
 Boolean canRun()
           Determines whether sample can be run given current context.
 Object initModel(behModel, sys)
           Initialize the model and define the methods that this model supports
 Boolean run()
           Functional part of this sample, creates several nodes of the new type, and one manager object, which stores the node-identifying prefix and root node.

Field Detail

requiredContext

String requiredContext

Constructor Detail

BasicExtensionHandler

BasicExtensionHandler()

Method Detail

canRun

Boolean canRun()

initModel

Object initModel(behModel, sys)

run

Boolean run()

AdobeBridgeCS5SDK

http://www.adobe.com/devnet/bridge
Documentation generated by JSDoc on Tue Apr 27 10:21:34 2010