Commit 95a41b6c authored by Jerome Legrand's avatar Jerome Legrand

version 2.0.12

parent 7f623fb6
No preview for this file type
version 2.0.12
* ticket 0000582 : add a --version to the taste editor
* ticket 0000583 : C006 : MSC editor
* ticket 0000584 : The component attributes configuration is not working anymore
version 2.0.11
* ticket 0000573 : 1.3 IV files are not correctlt loaded when they have been exported from the editor
* ticket 0000572 : error in dataview type IV aadl generation
......
......@@ -9,4 +9,5 @@ property set TASTE_IV_Properties is
-- MyInt: aadlinteger applies to (System);
-- MyReal: aadlreal applies to (System);
-- MyEnum: enumeration (val1, val2, val3, val4) applies to (System);
MSCFiles : aadlstring applies to (Subprogram);
end TASTE_IV_Properties;
package provide mscEditor 0.1
lappend auto_path .
namespace eval mscEditor {
# Graphical name of the operation
proc getLabel {} {
return "Launch MSC editor"
}
# Name of the application this script can be used with
# shall be either InterfaceView or DeploymentView
proc getApplication {} {
return "InterfaceView"
}
# Names of the object this script can be used on
proc getApplyTo {} {
return [list {"ProvidedInterface"}]
}
# List of way to manage output in the Framework
# Could be an empty list or one or both of 'dialogBox' and 'statusBar'
proc getOutputManagement {} {
return [list "statusBar"]
}
proc saveCurrentFile {} {
return "false"
}
proc mscEditor { args } {
set errNumb -1
set msg "msc editor has not been executed"
set mscfile ""
set selection [Object::getAttribute "interfaceview" "selection"]
if {$selection != ""} {
set MSCFilesName "TASTE_IV_Properties-MSCFiles"
set mscFiles [Object::getAttribute $selection $MSCFilesName]
set mscfile [lindex $mscFiles 0]
}
if {$mscfile != ""} {
if {[file exists $mscfile]} {
set platform [ToolsOthers::getPlateform]
set mscfile [file nativename $mscfile]
if {$platform == "windows" } {
#dputs "msce.py -o $mscfile"
#set errNumb [catch { exec {*}[auto_execok $::installationPath/config/externalTools/test.bat] $aadlFilePath $aadlId } msg ]
} else {
set errNumb [catch { exec msce.py -o "$mscfile" &} msg ]
}
} else {
set errNumb -1
set msg "the file $mscfile does not exist"
}
}
return [list $errNumb $msg]
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment