Changes between Version 8 and Version 9 of GROUP_SCRIPTING_R0
- Timestamp:
- 07/07/09 17:47:02 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_SCRIPTING_R0
v8 v9 75 75 * a text area that fires EDIT_SCRIPT 76 76 * and "Run" {{{LogicR3Button}}} that fires RUN_SCRIPT 77 * class {{{ScriptDocumentWindowProvider}}} implements {{{DocumentWindowProvider}}} (see below)77 * class {{{ScriptDocumentWindowProvider}}} implements {{{DocumentWindowProvider}}} (see last section) 78 78 * getWindow should return a new {{{ScriptDocumentWindow}}} for the given script resource 79 79 * register it as an extension … … 95 95 * listens for the event in {{{InsertScriptItem}}} 96 96 * creates a new empty {{{ScriptResource}}} in current book (use {{{CurrentBookUtil.getCurrentBook}}}) 97 * adds it to {{{App.documents}}} (see belowfor details)97 * adds it to {{{App.documents}}} (see last section for details) 98 98 * INSERT_SCRIPT_FILE 99 99 * listens for the event in {{{InsertScriptFileItem}}} 100 100 * displays a file dialog for "JavaScript files (*.js)" with "Insert" button 101 101 * using the persisters, creates a new {{{ScriptResource}}} in current book 102 * adds it to {{{App.documents}}} (see below for details)102 * adds it to {{{App.documents}}} (see last section) 103 103 * RUN_SCRIPT 104 104 * write the following temporary solution: … … 123 123 * Class {{{org.sophie2.main.app.commons.windows.DocumentWindowProviderFactory}}} 124 124 * static DocumentWindow createWindow(ResourceRef ref) that iterates over all extensions in the extension point and if an appropriate provider is found, creates a document window with it. 125 * Remove the properties {{{currentBook}}} and {{{lastCurrentBook}}} in {{{App}}}. 126 * Create analogical property {{{lastCurrentWindow}}} in {{{AppDocumentsDesktop}}}. 127 * Refactor the {{{AppDocumentsDesktop.currentWindow}}}. 128 * Replace all calls of currentBook with calls of currentWindow. 125 129 * On book closing close all children resources too (currently they can be scripts). 126 130