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