package controller;

import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;

import java.util.Optional;

/**
 * Created by 효민 on 2016-05-23.
 */
public class SavingCaution {


    ButtonType buttonTypeSave = new ButtonType("저장");
    ButtonType buttonTypeNotSave = new ButtonType("저장 안 함");


    public ButtonType getSavebtn(){
        return buttonTypeSave;
    }


}

@@ -381,10 +381,416 @@
     %7D%0A%0A%0A
+    public  Optional%3CButtonType%3E getWindow()%7B%0A%0A        Alert alert = new Alert(Alert.AlertType.WARNING);%0A        alert.setTitle(%22Simple Merge - %EC%86%8C%EA%B3%B5 2%ED%8C%80%22);%0A        alert.setHeaderText(null);%0A        alert.setContentText(%22%EC%83%88%EB%A1%9C%EC%9A%B4 %ED%8C%8C%EC%9D%BC%EB%A1%9C %EC%A0%80%EC%9E%A5%ED%95%98%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C?%22);%0A%0A        alert.getButtonTypes().setAll(buttonTypeSave, buttonTypeNotSave);%0A%0A        Optional%3CButtonType%3E result = alert.showAndWait();%0A%0A        return result;%0A    %7D%0A%0A%0A
 %7D%0A

create SavingCautionClass-getWindow