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();
}
}
Aggregations