Skip to content

Commit

Permalink
unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-kan committed Aug 10, 2023
1 parent a267e03 commit 29b560b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/main/java/c_interface_adapters/ProjectSelectionPresenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import b_application_business_rules.entity_models.ColumnModel;
import b_application_business_rules.entity_models.ProjectModel;
import b_application_business_rules.entity_models.TaskModel;
import b_application_business_rules.use_cases.project_selection_use_cases.DeleteProjectUseCase;
import c_interface_adapters.view_models.ColumnViewModel;
import c_interface_adapters.view_models.ProjectSelectionViewModel;
import c_interface_adapters.view_models.ProjectViewModel;
Expand Down Expand Up @@ -315,30 +314,6 @@ public void displayDeletedProject(ProjectModel projectModel) {
}
}

//Delete project code - TEMP
// TODO: TEMPORARY IMPLEMENTATION

private DeleteProjectUseCase deleteProjectUseCase;


// Constructor to inject DeleteProjectUseCase dependency
public ProjectSelectionPresenter(DeleteProjectUseCase deleteProjectUseCase) {
this.deleteProjectUseCase = deleteProjectUseCase;
}

// Method to handle the delete project action from the UI
public void handleDeleteProject(UUID projectId) {
try {
deleteProjectUseCase.deleteProject(projectId);
} catch (IllegalArgumentException e) {
// Handle error: Project not found with given ID
e.printStackTrace();
// Show error message to the user, if needed
}
}

//Delete project code - TEMP ENDS

/**
* Initializes the scene with the provided stage by loading the FXML file containing the layout
* and UI elements for choosing a project. It also updates the Presenter's Controller to be the controller from
Expand Down

0 comments on commit 29b560b

Please sign in to comment.