@@ -0,0 +1,1665 @@
+package seedu.task.alerts;%0A%0Aimport java.util.Optional;%0A%0Aimport javafx.scene.control.Alert;%0Aimport javafx.scene.control.ButtonType;%0A//@@author A0142360U%0Apublic class TransferTaskAlert extends Alert %7B%0A%0A    public static final String CHANGE_DIRECTORY_COMMAND_TITLE = %22Change of Task Storage Directory%22;%0A    public static final String CHANGE_DIRECTORY_HEADER_TEXT = %22Would you like your existing tasks to be transferred over to the new directory?%22;%0A    public static final ButtonType buttonTypeYes = new ButtonType(%22Yes%22);%0A    public static final ButtonType buttonTypeNo = new ButtonType(%22No%22);%0A    public static final ButtonType buttonTypeCancel = new ButtonType(%22Cancel%22);%0A    public static final String yes = %22Yes%22;%0A    public static final String no = %22No%22;%0A    public static final String noAction = %22noAction%22;%0A%0A    public TransferTaskAlert(AlertType alertType) %7B%0A        super(alertType);%0A    %7D%0A%0A    public static String transferTaskOptionAlert() %7B%0A%0A        try %7B%0A            Alert alert = new Alert(AlertType.CONFIRMATION);%0A            alert.setTitle(CHANGE_DIRECTORY_COMMAND_TITLE);%0A            alert.setHeaderText(CHANGE_DIRECTORY_HEADER_TEXT);%0A            alert.getButtonTypes().setAll(buttonTypeYes, buttonTypeNo,buttonTypeCancel);%0A%0A            Optional%3CButtonType%3E result = alert.showAndWait();%0A            if (result.get() == buttonTypeYes) %7B%0A                return yes;%0A            %7D else if (result.get() == buttonTypeNo)%7B%0A                return no;%0A            %7D%0A            else %7B%0A                return noAction;%0A            %7D%0A%0A%0A        %7D catch (ExceptionInInitializerError %7C IllegalStateException e) %7B%0A            return noAction;%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create a new Alert Dialog that allows users to decide whether they would like their tasks to be transferred over to the new directory