From cc79f421f82c04ae4fde124aa9d95b9a774b9173 Mon Sep 17 00:00:00 2001 From: Oluwasina Olowookere Date: Thu, 3 Aug 2023 23:10:28 -0400 Subject: [PATCH] Removed Duplicates --- .../ProjectSelectionInputBoundary.java | 2 +- .../CreateProject.java | 8 ++++ .../DeleteProject.java | 8 ++++ .../ProjectSelectionInteractor.java | 16 ++++---- .../ProjectSelectionPresenter.java | 40 +++++++++---------- 5 files changed, 45 insertions(+), 29 deletions(-) diff --git a/src/main/java/b_application_business_rules/boundaries/ProjectSelectionInputBoundary.java b/src/main/java/b_application_business_rules/boundaries/ProjectSelectionInputBoundary.java index 6c3e03f..514e69e 100644 --- a/src/main/java/b_application_business_rules/boundaries/ProjectSelectionInputBoundary.java +++ b/src/main/java/b_application_business_rules/boundaries/ProjectSelectionInputBoundary.java @@ -10,7 +10,7 @@ public interface ProjectSelectionInputBoundary { void setCurrentProject(ProjectModel project); - void setCurrentProject(Project project); + //void setCurrentProject(Project project); void createProject(String name, String description); diff --git a/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/CreateProject.java b/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/CreateProject.java index b37b28b..4779d5b 100644 --- a/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/CreateProject.java +++ b/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/CreateProject.java @@ -32,6 +32,14 @@ public void createProject(String name, String description) { } + /** + * + */ + @Override + public void createProject() { + + } + @Override public void createProject(ProjectModel projectModel){ try{ diff --git a/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/DeleteProject.java b/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/DeleteProject.java index e075b59..abcd5ab 100644 --- a/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/DeleteProject.java +++ b/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/DeleteProject.java @@ -33,6 +33,14 @@ public void createProject(String name, String description) { } + /** + * + */ + @Override + public void createProject() { + + } + @Override public void createProject(ProjectModel projectModel) { diff --git a/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/ProjectSelectionInteractor.java b/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/ProjectSelectionInteractor.java index b25ee24..1e0b087 100644 --- a/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/ProjectSelectionInteractor.java +++ b/src/main/java/b_application_business_rules/use_cases/project_selection_use_cases/ProjectSelectionInteractor.java @@ -57,14 +57,6 @@ public void setCurrentProject(ProjectModel project) { currentProjectRepository.setCurrentProject(project); } - /** - * @param project - */ - @Override - public void setCurrentProject(Project project) { - - } - /** * Creates a new project. This method is called when the user creates a new project in the UI. * It interacts with the necessary use cases and gateway to create the project. @@ -83,6 +75,14 @@ public void createProject(String projectName, String projectDescription) { presenter.displayCurrentProject(projectModel); } + /** + * + */ + @Override + public void createProject() { + + } + /** * @param projectModel */ diff --git a/src/main/java/c_interface_adapters/ProjectSelectionPresenter.java b/src/main/java/c_interface_adapters/ProjectSelectionPresenter.java index 3bd2de3..c6ae636 100644 --- a/src/main/java/c_interface_adapters/ProjectSelectionPresenter.java +++ b/src/main/java/c_interface_adapters/ProjectSelectionPresenter.java @@ -78,26 +78,26 @@ public void projectCreationFailed(String errorMessage) { /** * */ - @Override - public void displayCurrentProject() { - - } - - /** - * @param projectModel - */ - @Override - public void projectCreated(ProjectModel projectModel) { - - } - - /** - * @param errorMessage - */ - @Override - public void projectCreationFailed(String errorMessage) { - - } +// @Override +// public void displayCurrentProject() { +// +// } +// +// /** +// * @param projectModel +// */ +// @Override +// public void projectCreated(ProjectModel projectModel) { +// +// } +// +// /** +// * @param errorMessage +// */ +// @Override +// public void projectCreationFailed(String errorMessage) { +// +// } /** * Displays the current project by loading and setting the scene with the appropriate FXML file.