4.A.1.5.1. Obtaining information about the "key" and "component" actions
Multiple data lists, tables, views, procedures and editing windows, has implemented a universal mechanism of action. Just activate a tab or a view and see if there is a button [Actions].
Any place where there is a button [Actions] is identified by a special key is a unique string, eg "oracle-tables-actions". Another key feature is to assign it to a specific component, such as lists or editor.
To find out what is the key component and is associated with an action button, simply hold the [Ctrl] key and move the mouse over the button. You will get the hint, in which the properties are described.
4.A.1.5.2. Configuration
Setting up actions is available Program->Settings->Plug-in settings->BeanShell->Action scripts"
Column | Description |
---|---|
Scope | Visibility scope of action, "Global" - for all users, or "User" - visible only by the logged in user. |
Title | Title of action displayed on the menu when you select the [Actions] |
Key | A string specifying the location (type of action) in which the action will be plugged |
Driver | The driver, allows you to specify which databases, acion will be visible |
Export | Allows you to save action in the form of an XML file |
Import | Reads the action from the disk and put it on the list |
New | Allows you to create a new action script |
Edit | Allows you to change the properties of an existing action script |
Delete | Allows you to remove the action from the list |
After selecting the button [New] or [Edit] available window in which you define, the nature of the action script.
Property | Description |
---|---|
Action title | An action title, which appears in the menu when you select the [Actions] |
Action key | A string specifying the location (type of action) in which the action will be plugged |
Tooltip | A string that displays as a tooltip for the action |
For driver | The driver, allows you to specify which databases, acion will be visible |
Shortcut key | You can define a shortcut key to access to action of the component associated with the type of action |
BeanShell script | BeanShell script executable. This script will be executed when you select a share on the menu. |
For all users | ORBADA administrator can determine the extent of visibility of the action. The action can be seen by all users or only the current working |
4.A.1.5.3. Availability of program elements in the script BeanShell
In the script BeanShell is available all Java classes and objects of the program. Are also defined permanent:
Property | Description |
---|---|
self | Constant indicating the class object Interpreter BeanShell library |
database | If you have a connection to the database, this constant is an object of class Database UseDB library |
application | Allows you to access the properties through the application's interface features IApplication of ORBADA program |
component | Constant associated with the component that provides the action |
4.A.1.5.4. Checking the action
To see how to share work, you must re-create the view in which the action is hooked up. To invoke the script, you should choose [Actions] menu and select the action. If you have set a keyboard shortcut, you can choose select the shortcut from a component.