Changes between Version 1 and Version 2 of GROUP_SCRIPTING_R0
- Timestamp:
- 07/04/09 19:29:51 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_SCRIPTING_R0
v1 v2 6 6 7 7 == Overview == 8 General Scripting overview: 9 8 10 The users should be able to type and execute custom scripts. 9 * The script file isresource.10 * Execute button should present inside resource pallet.11 * Scripts could be edited inside document window. Again execute button should present. While editing the resource is saved automatically.11 * A script is a resource. 12 * Execute button should be present inside the resource pallete. 13 * Scripts could be edited inside a document window. Again execute button should be available. While editing the resource is saved automatically. 12 14 * Scripts could also be executed via links. 13 * The resource preview for scripts could allow editing.15 * The resource preview for scripts should allow editing. 14 16 * There should be ability to import/export script files. 15 * The user could create/edit/delete script files. 17 * The user could create/edit/delete scripts. 18 16 19 == Task requirements == 17 Create prototype for scripting that include following functionality.20 Create prototype for scripting that includes the following functionality: 18 21 * Ability to add/edit/delete script files. 19 22 * Add 'Insert Script File' button inside 'Insert' menu 20 23 * Create 'Insert Script' button inside 'Insert' menu that creates new resource. 21 * Provide document window that allows editing for scripts as well as executing them.22 * Add 'Execute' button inside resource details pallet , that is visible only when script resource is selected.23 * Create 'Hello world' example via scripting in Sophie 24 * (In next revision) Provide document window that allows editing for scripts as well as executing them. 25 * Add 'Execute' button inside resource details pallete, that is visible only when script resource is selected. 26 * Create 'Hello world' example via scripting in Sophie. 24 27 * OPTIONAL: Provide functionality that allows scripts to be evoked from links. 25 * Provide functionality that allows for script resource to be exported to files. Again in resource pallet. Also while editing it from the file menu save and save as should be functional. (NOTE: Saving the resource should be automatically, but exporting it to file is not)28 * Provide functionality that allows for script resource to be exported to files. Again in the resource pallete. Also while editing it from the file menu save and save as should be functional. (NOTE: Saving the resource should be automatically, but exporting it to file is not). 26 29 27 30 == Task result == 28 * The result should be code 31 * The result should be code. 29 32 30 33 == Implementation idea == 34 * Use the Rhino library: [http://www.mozilla.org/rhino/]. 35 31 36 * The output for the script could be Eclipse console or popup window. 32 37 … … 35 40 36 41 == How to demo == 37 ^(Provide instructions for demonstration of the task.)^ 42 * Create a new script. 43 * Write a JavaScript code that outputs "Hello world". 44 * Click the Run button. 38 45 39 46 = Design =