Commit 7e81460b authored by Adam Knapp's avatar Adam Knapp
Browse files

Hello world sample project improvements



Change-Id: I9f71a46039545f3824ef2326e9297d949f513809
Signed-off-by: default avatarAdam Knapp <adam.knapp@sigmatechnology.se>
parent d1d06faf
......@@ -33,7 +33,8 @@ public class HelloWorldJavaSample extends HelloWorldSample {
+ "\t}\n\n"
+ "\t@Override\n"
+ "\tprotected void outgoing_send(TitanCharString send_par) {\n"
+ "\n"
+ "\t\tSystem.out.println(send_par);\n"
+ "\t\tincoming_message(new TitanCharString(\"Hello, TTCN-3!\"));\n"
+ "\t}\n"
+ "}";
......
......@@ -77,13 +77,19 @@ public class HelloWorldSample extends SampleProject {
protected static final String MYEXAMPLE_CFG =
"[LOGGING]" + NEWLINE
+ "LogFile := \"../log/MyExample-%n.log\"" + NEWLINE
+ "LogFile := \"logs/MyExample-%n.log\"" + NEWLINE
+ "FileMask := LOG_ALL" + NEWLINE
+ "ConsoleMask := ERROR | TESTCASE | STATISTICS" + NEWLINE
+ "LogSourceInfo := Stack" + NEWLINE
+ NEWLINE
+ "[EXECUTE]" + NEWLINE
+ "MyExample.control" + NEWLINE;
+ "MyExample.control" + NEWLINE
+ NEWLINE
+ "[MAIN_CONTROLLER]" + NEWLINE
+ "# The options herein control the behavior of MC." + NEWLINE
+ "LocalAddress := 127.0.0.1" + NEWLINE
+ "TCPPort := 6789" + NEWLINE
+ "KillTimer := 10.0" + NEWLINE;
// copy of titan/hello/PCOType.hh
protected static final String PCOTYPE_HH =
......
......@@ -38,8 +38,8 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.titan.common.logging.ErrorReporter;
import org.eclipse.titan.designer.Activator;
import org.eclipse.titan.designer.compiler.ProjectSourceCompiler;
import org.eclipse.titan.designer.core.TITANJavaBuilder;
import org.eclipse.titan.designer.core.TITANNature;
import org.eclipse.titan.designer.productUtilities.ProductConstants;
import org.eclipse.titan.designer.properties.data.MakeAttributesData;
import org.eclipse.titan.designer.properties.data.ProjectBuildPropertyData;
import org.eclipse.titan.designer.properties.data.ProjectDocumentHandlingUtility;
......@@ -312,7 +312,7 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements
try {
final IProjectDescription description = newProject.getDescription();
final ICommand titanCommand = description.newCommand();
titanCommand.setBuilderName(ProductConstants.PRODUCT_ID_DESIGNER + ".core.TITANJavaBuilder");
titanCommand.setBuilderName(TITANJavaBuilder.BUILDER_ID);
final ICommand javaCommand = description.newCommand();
javaCommand.setBuilderName(JavaCore.BUILDER_ID);
......
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