Skip to content
Snippets Groups Projects
Commit 6f2ef35c authored by ics's avatar ics
Browse files

debug messages

parent 6f9c73f7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fr.ill.ics</groupId>
<artifactId>nomadgui</artifactId>
<version>4.0.25</version>
<version>4.0.26-SNAPSHOT</version>
<name>NomadGUI</name>
<description>Graphical user interface for Nomad</description>
<scm>
......
......@@ -92,13 +92,18 @@ public abstract class CommandLineShell implements IMagnifyListener {
}
public void init() {
System.out.println("init commandlineshell 1");
if (state.isCommandLine() && !isSimulationMode) {
System.out.println("init commandlineshell 2");
if (CommandLine.getInstance(serverId).isPaused() || CommandLine.getInstance(serverId).isStarted()) {
System.out.println("init commandlineshell 3");
// Wait for a sync event coming from the server
setSynchronised(false);
}
}
System.out.println("init commandlineshell 4");
Magnifier.getInstance().addContainerMagnifyListener(this);
System.out.println("init commandlineshell 5");
}
public final void setState(CommandLineState state) {
......@@ -411,11 +416,17 @@ public abstract class CommandLineShell implements IMagnifyListener {
public void setSynchronised(boolean synchronised) {
System.out.println("\tinit commandlineshell 3.1");
state.setSynchronised(synchronised);
System.out.println("\tinit commandlineshell 3.2");
updatePromptLabel();
System.out.println("\tinit commandlineshell 3.3");
if (synchronised) {
System.out.println("\tinit commandlineshell 3.4");
if (!pendingCommands.isEmpty()) {
System.out.println("\tinit commandlineshell 3.5");
// Disable the command line again to avoid pending commands to start in parallel
state.setSynchronised(false);
storeCommand = false;
......@@ -424,8 +435,10 @@ public abstract class CommandLineShell implements IMagnifyListener {
CommandLine.getInstance(serverId).parse(this, pendingCommands.get(0), state.getStartingLineNumber(), true);
pendingCommands.remove(0);
storeCommand = true;
System.out.println("\tinit commandlineshell 3.6");
}
}
System.out.println("\tinit commandlineshell 3.7");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment