Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Override model methods ?
Override model methods ? [message #421440] Wed, 06 August 2008 21:08 Go to next message
Petr Kalafatic is currently offline Petr KalafaticFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,
could you help me please ?
Is it possible to override model class methods ?
Something like :
ModelClass a = new ModelClass(){
@override
void doSomething(){...}
});
Thank you, br Petr.
Re: Override model methods ? [message #421442 is a reply to message #421440] Wed, 06 August 2008 21:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Petr,

Yes, but generally you'd add such a method to the interface and the
implementation of it to the Impl class.


Petr Kalafatic wrote:
> Hi,
> could you help me please ?
> Is it possible to override model class methods ?
> Something like : ModelClass a = new ModelClass(){
> @override
> void doSomething(){...}
> });
> Thank you, br Petr.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Override model methods ? [message #421444 is a reply to message #421442] Thu, 07 August 2008 05:23 Go to previous messageGo to next message
Petr Kalafatic is currently offline Petr KalafaticFriend
Messages: 10
Registered: July 2009
Junior Member
Hi, thanks for answer.
I develop "complicated" application - I refactor model many times
(because I am beginner) and I donŽt want change generated code.
If is it possible to override model methods - how do I implement it ?
(In the concrete I have threads model and I need to override run method
etc)
Thank you, br Petr.
Re: Override model methods ? [message #421445 is a reply to message #421444] Thu, 07 August 2008 06:32 Go to previous message
Petr Kalafatic is currently offline Petr KalafaticFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,
sorry,
I find the solution.
Br Petr
Previous Topic:Re: Help with itemPropertyDescriptors
Next Topic:Adding a new generation project to genmodel
Goto Forum:
  


Current Time: Wed Apr 24 20:46:55 GMT 2024

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

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

Back to the top