[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.stp.sca-tools] Re: Extending the SCA Meta Model

Damien Fournier a écrit :

But

What about the doSwitch() method provided by FrascatiSwitch or TuscanySwitch class (Obtained when generating model code)?
Since the generated doSwitch() call the caseXXX method according to meta object id.

If you have a look to the public and the first protected doSwitch() methods, you can see that
the EContainer of
the EClass of
the theEObject parameter
(of the doSwitch() method that contains the switch statement)
is the model package of the Switch class.


Does this means that the doSwitch() cannot be used when having ecore model extensions ?

No. For example, the public doSwitch method is used in the FrascatiItemProvider.



Whatever, I can use class name instead of meta object ids

Thanks for help

Damien


Stephane Drapeau Obeo