Generation working and Compilation of MARTe components
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
|
||||
importClass(Packages.org.csstudio.swt.widgets.natives.SpreadSheetTable.ITableSelectionChangedListener);
|
||||
importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
|
||||
|
||||
var table = widget.getTable();
|
||||
var fct_name=widget.getPropertyValue("name");
|
||||
|
||||
var selectionChanged = new Packages.org.csstudio.swt.widgets.natives.SpreadSheetTable.ITableSelectionChangedListener() {
|
||||
selectionChanged: function(selection) {
|
||||
var selectedrow= table.getSelection();
|
||||
var cuName=selectedrow[0][0];
|
||||
var phyName=selectedrow[0][1];
|
||||
var plcIocHlts =selectedrow[0][6];
|
||||
var cuType=selectedrow[0][7];
|
||||
// change $(CU) substitution
|
||||
macroInput = DataUtil.createMacrosInput(true)
|
||||
macroInput.put("CU", cuName)
|
||||
macroInput.put("PHY_NAME", phyName)
|
||||
macroInput.put("FCT_NAME", fct_name)
|
||||
macroInput.put("CU_TYPE", cuType)
|
||||
if (plcIocHlts == "") {
|
||||
macroInput.put("SHOW_PLC_IOC", "false")
|
||||
}
|
||||
else {
|
||||
macroInput.put("SHOW_PLC_IOC", "true")
|
||||
}
|
||||
// open OPI
|
||||
// see https://svnpub.iter.org/codac/iter/codac/dev/units/m-css-boy/trunk/org.csstudio.opibuilder/src/org/csstudio/opibuilder/scriptUtil/ScriptUtil.java
|
||||
if (cuType == "POC with CA") {
|
||||
ScriptUtil.openOPI(widget, fct_name + "-" + cuName + "-POCWithCADetails.opi", 1, macroInput)
|
||||
}
|
||||
else if (cuType == "POC without CA") {
|
||||
ScriptUtil.openOPI(widget, fct_name + "-" + cuName + "-POCWithoutCADetails.opi", 1, macroInput)
|
||||
}
|
||||
else if (cuType == "Plant System Host") {
|
||||
ScriptUtil.openOPI(widget, fct_name + "-" + cuName + "-PSHDetails.opi", 1, macroInput)
|
||||
}
|
||||
else if (cuType == "Fast Controller") {
|
||||
ScriptUtil.openOPI(widget, fct_name + "-" + cuName + "-PCFDetails.opi", 1, macroInput)
|
||||
}
|
||||
else if (cuType == "Server") {
|
||||
ScriptUtil.openOPI(widget, fct_name + "-" + cuName + "-SRVDetails.opi", 1, macroInput)
|
||||
}
|
||||
else {
|
||||
ScriptUtil.openOPI(widget, fct_name+"-CtrlUnitDetails.opi", 1, macroInput)
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
table.addSelectionChangedListener(selectionChanged);
|
||||
@@ -0,0 +1,87 @@
|
||||
<!--
|
||||
$HeadURL: https://svnpub.codac.iter.org/codac/iter/codac/dev/units/m-codac-unit-api/branches/codac-core-6.1/src/main/resources/pom-unit.xml $
|
||||
$Id: pom-unit.xml 96475 2019-01-09 13:47:38Z sivecm $
|
||||
|
||||
Project : CODAC Core System
|
||||
|
||||
Description : Project description file for a CODAC Core System subsystem
|
||||
|
||||
Authors : This file was generated by CODAC development toolkit
|
||||
|
||||
Copyright (c) : 2010-2019 ITER Organization,
|
||||
CS 90 046
|
||||
13067 St. Paul-lez-Durance Cedex
|
||||
France
|
||||
|
||||
This file is part of ITER CODAC software.
|
||||
For the terms and conditions of redistribution or use of this software.
|
||||
refer to the file ITER-LICENSE.TXT located in the top level directory.
|
||||
of the distribution package..
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.iter.codac.units</groupId>
|
||||
<artifactId>EC-GN</artifactId>
|
||||
<packaging>codac</packaging>
|
||||
<version>1.0.0</version>
|
||||
<name>CODAC Core System EC-GN subsystem</name>
|
||||
<description>CODAC Core System EC-GN subsystem</description>
|
||||
<url>http://www.iter.org/</url>
|
||||
|
||||
<!-- project properties -->
|
||||
<properties>
|
||||
<unit.type>subsystem</unit.type>
|
||||
<project.type>iandc</project.type>
|
||||
<rpm.vcs.url>%(/opt/tools/get-vcs-url.sh --path=${project.basedir})</rpm.vcs.url>
|
||||
</properties>
|
||||
|
||||
<!-- parent pom.xml -->
|
||||
<parent>
|
||||
<groupId>org.iter.codac.units</groupId>
|
||||
<artifactId>maven-iter-settings</artifactId>
|
||||
<version>6.3.0</version>
|
||||
</parent>
|
||||
|
||||
<!-- unit owner and developers -->
|
||||
<developers>
|
||||
<developer>
|
||||
<id>ferrog</id>
|
||||
<roles>
|
||||
<role>unit owner</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<!-- configuration of how the project is built -->
|
||||
<build>
|
||||
<!-- default phase is compile -->
|
||||
<defaultGoal>compile</defaultGoal>
|
||||
<!-- this command is executed if you just write 'mvn' -->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-iter-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<packaging>
|
||||
<rpmspec file="unit.spec">
|
||||
<source>src</source>
|
||||
<define
|
||||
macroname="project_artifactId">${project.artifactId}</define>
|
||||
<define macroname="project_version">${project.version}</define>
|
||||
<define
|
||||
macroname="project_description">${project.description}</define>
|
||||
</rpmspec>
|
||||
<package name="EC-GN-PSH0PCF-ioc">
|
||||
<url>${rpm.vcs.url}</url>
|
||||
<include name="EC-GN-PSH0PCF" type="ioc" />
|
||||
</package>
|
||||
<package name="EC-GN-PCF0SYSM-ioc">
|
||||
<include name="EC-GN-PCF0SYSM" type="ioc" />
|
||||
</package>
|
||||
</packaging>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
Reference in New Issue
Block a user