Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: samples/simple_todo/java/TodoController.java

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/simple_todo/java/SnapshotRunner.java ('k') | samples/simple_todo/java/TodoView.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/simple_todo/java/TodoController.java
diff --git a/samples/simple_todo/java/TodoController.java b/samples/simple_todo/java/TodoController.java
deleted file mode 100644
index 4a17112098cb78fb599b52f6de6c3a9e3cb1ad6e..0000000000000000000000000000000000000000
--- a/samples/simple_todo/java/TodoController.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-import dartino.*;
-
-class TodoController {
- static void InteractWithService() {
- TodoService.Setup();
-
- TodoView view = new TodoView();
- view.showMenu();
- boolean should_terminate = false;
- do {
- String input = view.getInput();
- if (null == input) {
- should_terminate = true;
- break;
- }
- switch (input) {
- case "q":
- should_terminate = true;
- break;
- case "m":
- view.showMenu();
- break;
- case "l":
- view.listTodoItems();
- break;
- case "a":
- view.addTodoItem();
- view.listTodoItems();
- break;
- case "t":
- view.toggleTodoItem();
- view.listTodoItems();
- break;
- case "c":
- view.clearDoneItems();
- view.listTodoItems();
- break;
- case "d":
- view.deleteItem();
- view.listTodoItems();
- break;
- default:
- view.showMenu();
- break;
- }
- } while (!should_terminate);
-
- TodoService.TearDown();
- }
-}
« no previous file with comments | « samples/simple_todo/java/SnapshotRunner.java ('k') | samples/simple_todo/java/TodoView.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698