Свойство | Type | Description | |
---|---|---|---|
IncludeScripts | string | ||
Script | System | ||
executeFunction | object | ||
executeFunction | object | ||
getIncludedcode | string | ||
getIncludes | List |
||
getLanguageFromPath | string | ||
getValueByName | string | ||
loadLocalMDGScripts | void | ||
loadLocalScripts | void | ||
loadMDGScripts | void | ||
loadMDGScriptsFromFolder | void | ||
loadMDGScriptsFromURL | void | ||
loadOtherMDGScripts | void | ||
loadStaticEAMaticScript | void | ||
loadStaticIncludableScripts | void | ||
reloadCode | void | ||
setLanguage | void |
Méthode | Description | |
---|---|---|
Script ( string scriptID, string scriptName, string groupName, string code, string language, TSF.UmlToolingFramework.Wrappers.EA model ) : System |
creaates a new script
|
|
Script ( string scriptID, string scriptName, string groupName, string code, string language, bool isStatic ) : System |
creaates a new script
|
|
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 ( TSF.UmlToolingFramework.Wrappers.EA model ) : List |
gets all scripts defined in the model
|
Méthode | Description | |
---|---|---|
IncludeScripts ( string code, List |
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)
|
|
Script ( ) : System | ||
executeFunction ( string functionName ) : object |
executes the function with the given name
|
|
executeFunction ( string functionName, object parameters ) : object |
executes the function with the given name
|
|
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="
|
|
loadLocalMDGScripts ( ) : void |
get the mdg files in the local MDGtechnologies folder
|
|
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
|
|
setLanguage ( string language ) : void |
public Script ( string scriptID, string scriptName, string groupName, string code, string language, TSF.UmlToolingFramework.Wrappers.EA model ) : 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 |
model | TSF.UmlToolingFramework.Wrappers.EA | the model this script resides in |
Résultat | 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 | |
Résultat | System |
public addCode ( string functionCode ) : void | ||
functionCode | string | the code to be added |
Résultat | void |
public addFunction ( |
||
operation | the operation to base this function on | |
Résultat |
public static getEAMaticScripts ( TSF.UmlToolingFramework.Wrappers.EA model ) : List | ||
model | TSF.UmlToolingFramework.Wrappers.EA | |
Résultat | List |