Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Accessing elements in the pre section(How to...)
Accessing elements in the pre section [message #663719] Wed, 06 April 2011 06:15 Go to next message
Andy Ed is currently offline Andy Ed
Messages: 41
Registered: December 2009
Member
I wish to access all of the events to do some pre-processing in the pre section. Is there a utility method to facilitate this? Here's something in pseudo-code below.

pre preCommon {
var eSet := modelAccess.allOfType(srcTasking!Event);
...
}

cheers,

Andy
Re: Accessing elements in the pre section [message #663845 is a reply to message #663719] Wed, 06 April 2011 11:48 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 795
Registered: July 2009
Senior Member
Hi Andy,

var eSet = srcTasking!Event.all;

should do the trick.

Cheers,
Dimitris
Re: Accessing elements in the pre section [message #663856 is a reply to message #663845] Wed, 06 April 2011 12:16 Go to previous message
Andy Ed is currently offline Andy Ed
Messages: 41
Registered: December 2009
Member
thanks.
Andy
Previous Topic:[Eugenia] Getting started (and writing a tutorial)
Next Topic:[ewl] GMF editor does not update after change to model
Goto Forum:
  


Current Time: Mon Jul 28 18:44:31 EDT 2014

Powered by FUDForum. Page generated in 0.01632 seconds