serhat gezgin Messages: 136 Registered: January 2013 Location: Izmir
Senior Member
Hi,
i have ewl file for wizard functions like;
import "util.eol";
wizard createFolder2OS {
guard : self.isTypeOf(Folder) and (new Native("org.xtext.example.filesystem.wizard.FileUtil").isFileNotExist(pathOfFile(self, self.name)))
title : 'Create Folder to OS'
do {
var folderPath = pathOfFile(self, self.name);
if (folderPath <> null){
var fileUtil = new Native("org.xtext.example.filesystem.wizard.FileUtil");
var success = fileUtil.createFolder(folderPath);
if(success){
UserInput.inform("Dosya Oluşturuldu");
}else{
UserInput.inform("Dosya oluşturulamadı. Hata Olustu!");
}
}
}
}