Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Use EOL operation and/or EOL files on Exeed
Use EOL operation and/or EOL files on Exeed [message #1402469] Thu, 17 July 2014 03:33 Go to next message
Juan Jimenez is currently offline Juan JimenezFriend
Messages: 5
Registered: February 2014
Junior Member
I'm using Exeed annotations (on Emfatic) to create icons and labels on my model tree. EOL statements have been pretty useful so far, however I would like to use extended properties (operations) and external EOL files so I don't have to repeat the same block of code multiple times, this is a sample class:

@exeed(label="var label : String;
if(self.name <> null and self.name <> '') {
	label = self.name;
}
else if(self.umlArtifact.isDefined()) {
	label = self.umlArtifact.Name;
}
return label + ' (Copy > ' + self.type().name + ')';"
, classIcon="link")
abstract class CopyArtifact extends SourceArtifact {  
  attr String copyPath;
}


As you can see, to get the label I have several sentences and it is growing with some logic I want to add. Is it possible to have an extended property (operation) like this, whether it is on the same Emfatic file, the ecore generated meta-model or an external EOL file?:

operation Artifact label() : String
{
	var label : String;
	if(self.name <> null and self.name <> '') {
		label = self.name;
	}
	else if(self.umlArtifact.isDefined()) {
		label = self.umlArtifact.Name;
	}
	return label;
}


Thanks.
Re: Use EOL operation and/or EOL files on Exeed [message #1403053 is a reply to message #1402469] Sun, 20 July 2014 21:11 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2182
Registered: July 2009
Location: York, UK
Senior Member

Hi Juan,

This is not currently supported I'm afraid. Could you please file an enhancement request?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=epsilon

Cheers,
Dimitris
Previous Topic:[EVL] cyclic connection
Next Topic:How to customize palette
Goto Forum:
  


Current Time: Fri Sep 20 09:38:28 GMT 2024

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

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

Back to the top