Property | Type | Description | |
---|---|---|---|
ExecuteFunction | object | ||
ExecuteFunction | object | ||
GetDescription | string | ||
GetIncludedcode | string | ||
GetIncludes | List |
||
GetLanguageFromPath | string | ||
GetValueByName | string | ||
IncludeScripts | string | ||
LoadLocalMdgScripts | void | ||
LoadLocalScripts | void | ||
LoadMdgScripts | void | ||
LoadMdgScriptsFromFolder | void | ||
LoadMdgScriptsFromUrl | void | ||
LoadOtherMdgScripts | void | ||
LoadStaticEaMaticScript | void | ||
LoadStaticIncludableScripts | void | ||
ReloadCode | void | ||
Script | System | ||
SetLanguage | void |
Method | Description | |
---|---|---|
AddCode ( string functionCode ) : void |
adds the given code to the end of the script
|
|
AddFunction ( |
add a function with based on the given operation
|
|
GetEaMaticScripts ( |
Gets all suitable Scripts defined in the model.Suitable Scripts have:
|
|
Script ( string scriptId, string scriptName, string groupName, string code, string language, |
creates a new script
|
|
Script ( string scriptId, string scriptName, string groupName, string code, string language, bool isStatic ) : System |
creates a new script
|
Method | Description | |
---|---|---|
ExecuteFunction ( string functionName ) : object |
executes the function with the given name
|
|
ExecuteFunction ( string functionName, object parameters ) : object |
executes the function with the given name
|
|
GetDescription ( string includeCode, Procedure procedure ) : string |
Get Description for Procedure. The function is identified by (independent of language):
|
|
GetIncludedcode ( string includeString ) : string |
gets the code to be included based on the include string. !INC statements
|
|
GetIncludes ( string code ) : List |
finds each instance of "!INC" and returns the whole line
|
|
GetLanguageFromPath ( string path ) : string | ||
GetValueByName ( string notesContent, string name ) : string |
gets the value from the content of the notes. The value can be found after "name="
|
|
IncludeScripts ( string code, string parentIncludeStatement = null ) : string |
replaces the !INC statements with the actual code of the local script. The local scripts are located in the "ea program files"\scripts (so usually C:\Program Files (x86)\Sparx Systems\EA\Scripts or C:\Program Files\Sparx Systems\EA\Scripts)
|
|
LoadLocalMdgScripts ( ) : void |
get the MDG files in the local MDGtechnologies folder. In EA .\EA\MDGTechnologies\...
|
|
LoadLocalScripts ( ) : void |
The local scripts are located in the "ea program files"\scripts (so usually C:\Program Files (x86)\Sparx Systems\EA\Scripts or C:\Program Files\Sparx Systems\EA\Scripts) The contents of the local scripts is loaded into the includableScripts
|
|
LoadMdgScripts ( string mdgXmlContent ) : void |
loads the scripts described in the MDG file into the includable scripts
|
|
LoadMdgScriptsFromFolder ( string folderPath ) : void |
load the scripts from the MDG files in the given directory
|
|
LoadMdgScriptsFromUrl ( string url ) : void |
load the MDG scripts from the MDG file located at the given URL
|
|
LoadOtherMdgScripts ( ) : void |
loads the MDG scripts from the locations added from MDG Technologies|Advanced. these locations are stored as a comma separated string in the registry a location can either be a directory, or an URL
|
|
LoadStaticEaMaticScript ( string scriptName, string groupName, string scriptCode, string language ) : void | ||
LoadStaticIncludableScripts ( ) : void |
loads all static includable scripts. These scripts are stored outside the model and can not be changed by the user
|
|
ReloadCode ( ) : void |
reload the code into the controller to refresh the functions
|
|
Script ( ) : System | ||
SetLanguage ( string language ) : void |
public AddCode ( string functionCode ) : void | ||
functionCode | string | the code to be added |
return | void |
public AddFunction ( |
||
operation | the operation to base this function on | |
return |
public static GetEaMaticScripts ( |
||
model | ||
return | List |
public Script ( string scriptId, string scriptName, string groupName, string code, string language, |
||
scriptId | string | the id of the script |
scriptName | string | the name of the script |
groupName | string | the name of the script group |
code | string | the code |
language | string | the language the code is written in |
model | the model this script resides in | |
return | System |
public Script ( string scriptId, string scriptName, string groupName, string code, string language, bool isStatic ) : System | ||
scriptId | string | the id of the script |
scriptName | string | the name of the script |
groupName | string | the name of the scriptgroup |
code | string | the code |
language | string | the language the code is written in |
isStatic | bool | |
return | System |