Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Modeling Subclassing behaviour
Modeling Subclassing behaviour [message #641741] Sat, 27 November 2010 13:34 Go to next message
Volker Schilling is currently offline Volker SchillingFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I try to model some editor that handles deriveable model elements like
in java.

Example:

Model 1
=======

class : Test
property A
property B


Model 2
=======

class : Test2 (subclass : Test)
property A [readonly::Test]
property B [readonly::Test]
property C


I like to see all properties from the super class element as read only.
Has anyone a solution for this?

Thanks,
Volker
Re: Modeling Subclassing behaviour [message #641755 is a reply to message #641741] Sat, 27 November 2010 16:52 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Volker,

Test2 reuses the property descriptors for Test so you'd have to override
the methods that create them to create read only property descriptors.



Volker Schilling wrote:
> Hi,
>
> I try to model some editor that handles deriveable model elements like
> in java.
>
> Example:
>
> Model 1
> =======
>
> class : Test
> property A
> property B
>
>
> Model 2
> =======
>
> class : Test2 (subclass : Test)
> property A [readonly::Test]
> property B [readonly::Test]
> property C
>
>
> I like to see all properties from the super class element as read only.
> Has anyone a solution for this?
>
> Thanks,
> Volker
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How do I make sample EMF editor stop removing the package part of the object name?
Next Topic:model attributes for each pair of class A and class B
Goto Forum:
  


Current Time: Thu Apr 25 03:34:15 GMT 2024

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

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

Back to the top