Skip to main content


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 10:15 Go to next message
Andy Ed is currently offline Andy EdFriend
Messages: 64
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 15:48 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 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 16:16 Go to previous message
Andy Ed is currently offline Andy EdFriend
Messages: 64
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: Fri Apr 26 07:12:25 GMT 2024

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

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

Back to the top