refactoring

This commit is contained in:
rusefi 2017-11-16 18:17:06 -05:00
parent 32ea2d1abb
commit 9725b36a95
1 changed files with 3 additions and 6 deletions

View File

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