Loading tools/NewTestCasePlugin/plugin/src/org/etsi/mts/ttcn3/part9/popup/actions/NewTestCase.java +4 −3 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ public class NewTestCase implements IObjectActionDelegate { private static final String TTCN_TEMPLATE = "/***************************************************\n" + " ** @author STF 475\n" + " ** @version 0.0.1\n" + " ** @purpose 9:%1$s\n" + " ** @purpose 9:%1$s, TODO write purpose\n" + " ** @verdict pass accept, ttcn3verdict:pass\n" + " ***************************************************/\n" + "module %2$s {\n" Loading @@ -40,7 +40,7 @@ public class NewTestCase implements IObjectActionDelegate { + " // TODO specify type for the template\n" + " template __type__ m_msg := { };\n" + "\n" + "//#TC\n" + "//#TC%3$s\n" +"}\n"; private static final String XSD_TEMPLATE = Loading Loading @@ -119,8 +119,9 @@ public class NewTestCase implements IObjectActionDelegate { pm.beginTask("New test case", 4); tcfolder.create(true, true, new NullProgressMonitor()); pm.worked(1); String tcMacroSuffix = "Neg".equals(tckind) ? "_Neg" : ""; // TODO get section number String ttcn_content = String.format(TTCN_TEMPLATE, section, name); String ttcn_content = String.format(TTCN_TEMPLATE, section, name, tcMacroSuffix); String xsd_content = String.format(XSD_TEMPLATE, name); String xml_content = String.format(XML_TEMPLATE, name); Loading Loading
tools/NewTestCasePlugin/plugin/src/org/etsi/mts/ttcn3/part9/popup/actions/NewTestCase.java +4 −3 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ public class NewTestCase implements IObjectActionDelegate { private static final String TTCN_TEMPLATE = "/***************************************************\n" + " ** @author STF 475\n" + " ** @version 0.0.1\n" + " ** @purpose 9:%1$s\n" + " ** @purpose 9:%1$s, TODO write purpose\n" + " ** @verdict pass accept, ttcn3verdict:pass\n" + " ***************************************************/\n" + "module %2$s {\n" Loading @@ -40,7 +40,7 @@ public class NewTestCase implements IObjectActionDelegate { + " // TODO specify type for the template\n" + " template __type__ m_msg := { };\n" + "\n" + "//#TC\n" + "//#TC%3$s\n" +"}\n"; private static final String XSD_TEMPLATE = Loading Loading @@ -119,8 +119,9 @@ public class NewTestCase implements IObjectActionDelegate { pm.beginTask("New test case", 4); tcfolder.create(true, true, new NullProgressMonitor()); pm.worked(1); String tcMacroSuffix = "Neg".equals(tckind) ? "_Neg" : ""; // TODO get section number String ttcn_content = String.format(TTCN_TEMPLATE, section, name); String ttcn_content = String.format(TTCN_TEMPLATE, section, name, tcMacroSuffix); String xsd_content = String.format(XSD_TEMPLATE, name); String xml_content = String.format(XML_TEMPLATE, name); Loading