Search in sources :

Example 1 with FilePropertiesComposite

use of com.kyj.fx.voeditor.visual.component.file.FilePropertiesComposite in project Gargoyle by callakrsos.

the class SystemLayoutViewController method menuPropertiesOnAction.

/********************************
	 * 작성일 : 2016. 5. 12. 작성자 : KYJ
	 *
	 * 속성을 조회하는 팝업을 로드한다.
	 *
	 * @param e
	 ********************************/
public void menuPropertiesOnAction(ActionEvent e) {
    TreeItem<FileWrapper> selectedItem = treeProjectFile.getSelectionModel().getSelectedItem();
    NullExpresion.ifNotNullDo(selectedItem, item -> {
        File file = item.getValue().getFile();
        if (file.exists()) {
            FilePropertiesComposite composite = new FilePropertiesComposite(file);
            FxUtil.createStageAndShow(composite, stage -> {
                stage.setTitle(FilePropertiesComposite.TITLE);
                stage.initOwner(SharedMemory.getPrimaryStage());
            });
        }
    });
}
Also used : FileWrapper(com.kyj.fx.voeditor.visual.component.FileWrapper) FilePropertiesComposite(com.kyj.fx.voeditor.visual.component.file.FilePropertiesComposite) File(java.io.File)

Aggregations

FileWrapper (com.kyj.fx.voeditor.visual.component.FileWrapper)1 FilePropertiesComposite (com.kyj.fx.voeditor.visual.component.file.FilePropertiesComposite)1 File (java.io.File)1