Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » on Runtime EWL file don't see EOL file
on Runtime EWL file don't see EOL file [message #1043541] Wed, 17 April 2013 21:06 Go to next message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
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!");
			}
		}
	}
}


and EOL file like;

operation pathOfFile(file : File, fileName : String) : String{
	var folder = Folder.all.flatten().selectOne( a | a.contents.includes(file));
	if(folder <> null){
		return pathOfFile(folder, folder.name + "\\" + fileName);
	}else{
		return fileName;
	}
}


on development my ewl file can see eol file and i dont get error
but on runtime i always get

Method 'pathOfFile' not found (bundleentry://943.fwk208734779/wizards/filesystem.ewl@26:113)

error why dont understand anyone can help me ?

Regards
Re: on Runtime EWL file don't see EOL file [message #1043889 is a reply to message #1043541] Thu, 18 April 2013 08:26 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi,

Could you please try to import your eol file using a fully-qualified path e.g.

import "platform:/plugin/<project-name>/<eol-file-path>";

and see if this works?

Cheers,
Dimitris
Re: on Runtime EWL file don't see EOL file [message #1044026 is a reply to message #1043889] Thu, 18 April 2013 12:04 Go to previous message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
Hi

Ewl dont support this import type (ewl warning). But i found mistake i was send wrong

model type to .eol file when i change this type problem fixed:). But i think console

output must be more clear i can't understand this from error. Thanks for answer

Regards
Previous Topic:Make the diagram generate nice code in XText editor
Next Topic:[Eugenia] Labeling Attributes
Goto Forum:
  


Current Time: Thu Apr 25 12:35:35 GMT 2024

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

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

Back to the top