refactoring

This commit is contained in:
rusefi 2017-11-16 18:17:06 -05:00
parent 5c8cdbfbda
commit 20a6527615
1 changed files with 3 additions and 6 deletions

View File

@ -48,12 +48,9 @@ public class AnyCommand {
});
content.add(go);
CommandQueue.getInstance().addListener(new CommandQueue.CommandQueueListener() {
@Override
public void onCommand(String command) {
if (listenToCommands && !reentrant)
text.setText(command);
}
CommandQueue.getInstance().addListener(command -> {
if (listenToCommands && !reentrant)
text.setText(command);
});
text.getDocument().addDocumentListener(new DocumentListener() {