Set socket closing by interruption trace as FINE level

Additional comments, extract exec command default name to constant

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
2016-08-30 12:16:58 -04:00
parent ecc10994ca
commit 80d10d7d85
13 changed files with 72 additions and 78 deletions

View File

@@ -77,7 +77,7 @@ public final class HistoryTextKeyListener extends KeyAdapter {
pressedKeyCode(e.keyCode);
}
/** @param keyCode */
/** @param keyCode the pressed key code */
public void pressedKeyCode(int keyCode) {
// Enter validates the command if prompting
if (keyCode == '\r') {

View File

@@ -225,6 +225,8 @@ public class SWTConsole extends Composite implements ConsoleManager {
promptLock.notifyAll();
promptLock.wait();
} catch (final InterruptedException e) {
LOGGER.log(Level.WARNING,
"Error in synchronization of prompting", e); //$NON-NLS-1$
command = null;
}
}
@@ -260,6 +262,8 @@ public class SWTConsole extends Composite implements ConsoleManager {
throw new IOException();
}
} catch (final InterruptedException e) {
LOGGER.log(Level.WARNING,
"Error in synchronization of prompting", e); //$NON-NLS-1$
command = null;
} finally {
Display.getDefault().syncExec(new Runnable() {

View File

@@ -55,6 +55,7 @@ import fr.bigeon.gclc.exception.InvalidCommandName;
* TODO
*
* @author Emmanuel Bigeon */
@SuppressWarnings({"javadoc", "static-method", "nls", "deprecation"})
public class SWTConsoleShellTest {
protected static final long TWO_SECONDS = 2000;