Class SnpAddPreferencesPanel
Object
|
+--SnpAddPreferencesPanel
- class
SnpAddPreferencesPanel
Shows how to add a custom option to the Preferences dialog.
Usage
- Run the snippet in the ExtendScript Toolkit (see Readme.txt)
- In Bridge, select Edit > Preferences
- Examine the new preferences panel added, named after this snippet.
Description
Shows how to add a custom user-preferences option to the Preferences dialog.
When the user sets this value, the change takes effect immediately, but does not
persist across sessions. The next time the Bridge application is restarted, the
global preference value is used.
Defined in SnpAddPreferencesPanel.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run. |
Method Summary |
boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet, creates an event handler that adds a new panel
to the Preferences dialog, allowing the user to set a new script-defined option.
|
requiredContext
String requiredContext
The context in which this snippet can run.
SnpAddPreferencesPanel
SnpAddPreferencesPanel()
canRun
boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
Returns:
True is this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet, creates an event handler that adds a new panel
to the Preferences dialog, allowing the user to set a new script-defined option.
Returns:
True if the snippet ran as expected, false otherwise
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010