EOL [message #1020684] |
Mon, 18 March 2013 14:11  |
Eclipse User |
|
|
|
Hi all,
i want to ask u;
i have create util.eol like;
operation pathOfFile(file : File, fileName : String) : String{
var folder = Folder.all.flatten().selectOne( a | a.contents.includes(file));
if(folder <> null){
pathOfFile(folder, folder.name + "\\" + fileName);
}else{
return "abc" + fileName;
}
return "";
}
operation String addHello() {
return "Hello " + self;
}
and then call this methods from
.ewl file like;
wizard generateFiles {
guard : self.isKindOf(File)
title : 'Create Java From ' + self.name
do {
pathOfFile(self, self.name).println();
"serhat".addHello().println();
}
}
when i call generateFiles from wizard;
my consol output is just addHello operations output i cant get pathOfFile's method
why dont understand it must generate string but i cant take that
anyone can help me ?
Regards,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04477 seconds