Changes between Version 1 and Version 2 of GROUP_SCRIPTING_R0


Ignore:
Timestamp:
07/04/09 19:29:51 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUP_SCRIPTING_R0

    v1 v2  
    66 
    77== Overview == 
     8General Scripting overview: 
     9 
    810The users should be able to type and execute custom scripts. 
    9  * The script file is resource. 
    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. 
    1214 * 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. 
    1416 * 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 
    1619== Task requirements == 
    17 Create prototype for scripting that include following functionality. 
     20Create prototype for scripting that includes the following functionality: 
    1821 * Ability to add/edit/delete script files. 
    1922  * Add 'Insert Script File' button inside 'Insert' menu 
    2023  * 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. 
    2427 * 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). 
    2629 
    2730== Task result == 
    28  * The result should be code 
     31 * The result should be code. 
    2932 
    3033== Implementation idea == 
     34 * Use the Rhino library: [http://www.mozilla.org/rhino/]. 
     35 
    3136 * The output for the script could be Eclipse console or popup window. 
    3237 
     
    3540 
    3641== 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. 
    3845 
    3946= Design =