| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 // Generated file. Do not edit. | 5 // Generated file. Do not edit. |
| 6 | 6 |
| 7 package immi; | 7 package immi; |
| 8 | 8 |
| 9 import java.util.concurrent.ExecutorService; | 9 import java.util.concurrent.ExecutorService; |
| 10 import java.util.concurrent.Executors; | 10 import java.util.concurrent.Executors; |
| 11 | 11 |
| 12 import fletch.ImmiServiceLayer; | 12 import dartino.ImmiServiceLayer; |
| 13 import fletch.ImmiServiceLayer.RefreshCallback; | 13 import dartino.ImmiServiceLayer.RefreshCallback; |
| 14 import fletch.PatchData; | 14 import dartino.PatchData; |
| 15 | 15 |
| 16 public final class ImmiRoot { | 16 public final class ImmiRoot { |
| 17 | 17 |
| 18 // Public interface. | 18 // Public interface. |
| 19 | 19 |
| 20 public void refresh() { | 20 public void refresh() { |
| 21 refreshThread.submit(requestRefresh); | 21 refreshThread.submit(requestRefresh); |
| 22 } | 22 } |
| 23 | 23 |
| 24 public void reset() { | 24 public void reset() { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 private int id; | 97 private int id; |
| 98 private AnyNodePresenter presenter; | 98 private AnyNodePresenter presenter; |
| 99 private AnyNode previous; | 99 private AnyNode previous; |
| 100 private boolean refreshPending = false; | 100 private boolean refreshPending = false; |
| 101 private boolean refreshRequired = false; | 101 private boolean refreshRequired = false; |
| 102 private final static ExecutorService refreshThread = Executors.newSingleThread
Executor(); | 102 private final static ExecutorService refreshThread = Executors.newSingleThread
Executor(); |
| 103 } | 103 } |
| OLD | NEW |