Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Working with enumerations and casting to subclass
Working with enumerations and casting to subclass [message #573246] Sun, 09 August 2009 00:36
Lukman  is currently offline Lukman Friend
Messages: 8
Registered: August 2010
Junior Member
Hi,

Right now I'm working with EGL and I have a problem with enumerations in
the metamodel. How do I refer to elements in the enumeration in IF
statement?

Another problem that I got is with subclasses in the metamodel. This is
the snippet of my EGL template.

if(transition.source.isKindOf(Pseudostate)=false){
generateTransitions();
}else{
------
}

In the ELSE section I want to add another IF statement that will check
certain properties of Pseudostate. In the metamodel transition.source can
be either Pseudostate or SimpleState. Do I need to cast transition.source
to Pseudostate in the ELSE section? If I do, how do I do it?

Cheers,
Lukman
Previous Topic:EGL's handling of target files
Next Topic:Error in EVL Quick Fix: "cannot find resource '/project:/...'"
Goto Forum:
  


Current Time: Fri Apr 26 14:20:46 GMT 2024

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

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

Back to the top