Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EOL
EOL [message #1020684] Mon, 18 March 2013 18:11 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 240
Registered: January 2013
Location: Izmir
Senior Member
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,
Re: EOL [message #1020773 is a reply to message #1020684] Mon, 18 March 2013 22:23 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 880
Registered: July 2009
Senior Member
Hi Serhat,

Are you perhaps missing a "return" on the 4th line of your pathOfFile method?

Cheers,
Dimitris
Re: EOL [message #1021884 is a reply to message #1020773] Wed, 20 March 2013 21:23 Go to previous message
serhat gezgin is currently offline serhat gezgin
Messages: 240
Registered: January 2013
Location: Izmir
Senior Member
hi,

yes u right i forget return
Previous Topic:EGL
Next Topic:SVG
Goto Forum:
  


Current Time: Mon Oct 20 11:38:20 GMT 2014

Powered by FUDForum. Page generated in 0.01607 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software