Search in sources :

Example 1 with TextBaseComparator

use of com.kyj.fx.voeditor.visual.diff.TextBaseComparator in project Gargoyle by callakrsos.

the class DAOLoaderController method compare.

/********************************
	 * 작성일 : 2016. 4. 20. 작성자 : KYJ
	 *
	 * 두개의 데이터를 비교.
	 *
	 * @param tbmSysDaoMethodsHDVO
	 * @param tbmSysDaoMethodsHDVO2
	 ********************************/
private void compare(TbmSysDaoMethodsHDVO o1, TbmSysDaoMethodsHDVO o2) {
    try {
        FXMLLoader loader = new FXMLLoader();
        loader.setLocation(DiffAppController.class.getResource("TextBaseDiffApp.fxml"));
        BorderPane load = loader.load();
        TextBaseDiffAppController controller = loader.getController();
        controller.setCompare(new TextBaseComparator());
        controller.setDiff(getSqlBody(o1.getHistTsp()), getSqlBody(o2.getHistTsp()));
        Stage stage = new Stage();
        stage.initOwner(SharedMemory.getPrimaryStage());
        stage.centerOnScreen();
        stage.setScene(new Scene(load));
        stage.showAndWait();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : DiffAppController(com.kyj.fx.voeditor.visual.component.DiffAppController) TextBaseDiffAppController(com.kyj.fx.voeditor.visual.component.TextBaseDiffAppController) BorderPane(javafx.scene.layout.BorderPane) TextBaseComparator(com.kyj.fx.voeditor.visual.diff.TextBaseComparator) Stage(javafx.stage.Stage) TextBaseDiffAppController(com.kyj.fx.voeditor.visual.component.TextBaseDiffAppController) Scene(javafx.scene.Scene) FXMLLoader(javafx.fxml.FXMLLoader)

Aggregations

DiffAppController (com.kyj.fx.voeditor.visual.component.DiffAppController)1 TextBaseDiffAppController (com.kyj.fx.voeditor.visual.component.TextBaseDiffAppController)1 TextBaseComparator (com.kyj.fx.voeditor.visual.diff.TextBaseComparator)1 FXMLLoader (javafx.fxml.FXMLLoader)1 Scene (javafx.scene.Scene)1 BorderPane (javafx.scene.layout.BorderPane)1 Stage (javafx.stage.Stage)1