mirror of https://github.com/FOME-Tech/fome-fw.git
refactoring
This commit is contained in:
parent
32ea2d1abb
commit
9725b36a95
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue