Search in sources :

Example 1 with MacroControl

use of com.kyj.fx.voeditor.visual.component.macro.MacroControl in project Gargoyle by callakrsos.

the class SqlPane method menuQueryMacroOnAction.

/**
	 * query-macro menu 선택시 발생되는 이벤트에 대한정의.
	 *
	 * 기술내용으로는 쿼리 매크로를 처리할 수 있는 팝업을 로드한다.
	 *
	 * @작성자 : KYJ
	 * @작성일 : 2016. 8. 31.
	 * @param e
	 */
public void menuQueryMacroOnAction(ActionEvent e) {
    String selectedSQLText = getSelectedSqlTab().getSelectedSQLText();
    MacroControl macroControl = new MacroControl(connectionSupplier, selectedSQLText);
    FxUtil.createStageAndShow(macroControl, stage -> {
        stage.setTitle("Query-Macro");
        stage.initOwner(SqlPane.this.getScene().getWindow());
        stage.setOnCloseRequest(ev -> {
            LOGGER.debug("Stop Action Result :stopReuqest ");
            macroControl.stop();
        });
    });
}
Also used : MacroControl(com.kyj.fx.voeditor.visual.component.macro.MacroControl)

Aggregations

MacroControl (com.kyj.fx.voeditor.visual.component.macro.MacroControl)1