Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » [invalid] Sirius uses base class instead of derived
[invalid] Sirius uses base class instead of derived [message #1410247] Wed, 20 August 2014 07:46 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 208
Registered: July 2009
Location: Graz, Austria
Senior Member
My model defines an abstract "Base" class along with several implementation classes A, B, C. Base defines a method foo() which throws an UnsupportedOperationException. The implementation of that method is done in the derived classes.

Now with sirius I created a new Node element for domain class model.Base. My label expression is [thisEObject.foo()/] but instead of using foo() implementations of A,B,C Sirius calls Base.foo() which throws an exception.

Why is Sirius using the base implementation instead of the derived one? Is there a way to avoid this behavior?

[Updated on: Wed, 20 August 2014 07:55]

Report message to a moderator

Re: Sirius uses base class instead of derived [message #1410249 is a reply to message #1410247] Wed, 20 August 2014 07:55 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 208
Registered: July 2009
Location: Graz, Austria
Senior Member
Nevermind, I somehow had overwritten my implementations in A,B,C.

Sirius works as expected, I love you Sirius Smile
Previous Topic:How to disable a shadow on a aird-diagram?
Next Topic:Create double click action for diagram background?
Goto Forum:
  


Current Time: Tue Apr 07 05:16:27 GMT 2020

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

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

Back to the top