From 88c37b25565a003faf1e7089946a9a3b07fdad95 Mon Sep 17 00:00:00 2001 From: Fabien Tessier <fabien.tessier@telecom-paristech.fr> Date: Thu, 7 Dec 2017 15:01:42 +0100 Subject: [PATCH] Update GTURTLE Modeling for project manager merge --- src/main/java/ui/GTURTLEModeling.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ui/GTURTLEModeling.java b/src/main/java/ui/GTURTLEModeling.java index 9ff71dbff1..f3adf47be2 100755 --- a/src/main/java/ui/GTURTLEModeling.java +++ b/src/main/java/ui/GTURTLEModeling.java @@ -456,7 +456,7 @@ public class GTURTLEModeling { } } - public boolean generateCCode( String _title ) { + public boolean generateCCode( String directory ) { //CheckingError ce; //int type; @@ -472,8 +472,8 @@ public class GTURTLEModeling { //List<TGComponent> components = mgui.getCurrentArchiPanel().tmlap.getComponentList(); // Parse the PEC file and the library of code snippets for each DIPLODOCUS unit applicationName = tmap.getMappedTasks().get(0).getName().split("__")[0]; // Remember that it works only for one application - CCode = new TMLModelCompiler( _title, applicationName, mgui.frame, mgui.getAllTMLCP(), tmap ); - File dir = new File(ConfigurationTTool.CCodeDirectory + File.separator); + CCode = new TMLModelCompiler( directory, applicationName, mgui.frame, mgui.getAllTMLCP(), tmap ); + File dir = new File(directory /*ConfigurationTTool.CCodeDirectory*/ + File.separator); if (!dir.exists()) dir.mkdirs(); CCode.toTextFormat(); @@ -9432,7 +9432,7 @@ public class GTURTLEModeling { int i=0; int diff=300; int ydiff=50; - int num = asme.nbOfNexts(); + //int num = asme.nbOfNexts(); if (!(asme instanceof AvatarTransition)){ for (AvatarStateMachineElement el:asme.getNexts()){ if (!(el instanceof AvatarTransition)){ -- GitLab