Skip to content

Commit

Permalink
Clean up code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pasin committed Jan 27, 2020
1 parent fed018c commit ad82e93
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion java-desktop/src/main/java/com/couchbase/todo/TodoApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.couchbase.todo.controller.MainController;
import com.couchbase.todo.model.DB;


public class TodoApp extends Application {

public enum CR_MODE { DEFAULT, LOCAL, REMOTE }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.couchbase.todo.TodoApp;
import com.couchbase.todo.model.DB;


public class LoginController implements Initializable {

@FXML private TextField userNameField;
Expand All @@ -41,8 +40,6 @@ private void registerEventHandlers() {
if (username.trim().length() > 0 && password.trim().length() > 0) {
DB.get().login(username, password);
TodoApp.gotoMainScreen(this.stage);
} else {
// TODO: Show Alert
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.couchbase.todo.model.TaskList;
import com.couchbase.todo.view.TaskListCell;


public final class TaskListsController implements Initializable, TaskListCell.TaskListCellListener {

private static final String TYPE = "task-list";
Expand Down Expand Up @@ -105,7 +104,6 @@ private void createList() {
Optional<String> result = dialog.showAndWait();

result.ifPresent(name -> {
// TODO: Execute on non-ui thread
String username = DB.get().getLoggedInUsername();
String docId = username + "." + UUID.randomUUID();
MutableDocument doc = new MutableDocument(docId);
Expand All @@ -123,7 +121,6 @@ private void updateName(TaskList taskList) {
dialog.setContentText("List Name");
Optional<String> result = dialog.showAndWait();
result.ifPresent(name -> {
// TODO: Execute on non-ui thread
Document doc = DB.get().getDocument(taskList.getId());
if (doc != null) {
MutableDocument mDoc = doc.toMutable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import com.couchbase.todo.model.DB;


public class DeleteDocService extends Service<Void> {

private @NotNull String docId;
Expand All @@ -26,4 +25,5 @@ protected Void call() throws Exception {
}
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.couchbase.todo.model.Task;

public class TaskCellSelectionModel extends MultipleSelectionModel<Task> {

@Override
public ObservableList<Integer> getSelectedIndices() {
return FXCollections.emptyObservableList();
Expand Down Expand Up @@ -55,4 +56,5 @@ public void selectPrevious() { }

@Override
public void selectNext() { }

}

0 comments on commit ad82e93

Please sign in to comment.