eclipse-ecp / org.eclipse.emf.ecp.core

Eclipse Public License 2.0
0 stars 0 forks source link

XMI View Model provider returns ViewModels of SuperTypes #90

Open eclipse-ecp-bot opened 8 months ago

eclipse-ecp-bot commented 8 months ago

| --- | --- | | Bugzilla Link | 541702 | | Status | NEW | | Importance | P3 normal | | Reported | Nov 29, 2018 09:54 EDT | | Modified | Mar 16, 2022 14:17 EDT | | Reporter | Eugen Neufeld |

Description

If you have class Foo with a View Model and you add class Bar extends Foo then instead of a generated ViewModel based on the attributes of Bar you get the ViewModel of Foo.\ I think this is not an expected behavior and thus would argue for removing this and only return View Models for exact fits.

eclipse-ecp-bot commented 8 months ago

By Eugen Neufeld on Dec 12, 2018 09:05

Currently we are discussing 2 possibilities:\ a) change the behavior to only return view models for fitting eClasses\ b) add an option (on the xmi extension point?) to switch between the old behavior (current) and the new behavior (expected).

We would like to hear your thoughts on this.

eclipse-ecp-bot commented 8 months ago

By Jonas Helming on Dec 12, 2018 09:16

As the existing behavior is released since many years now, I vote for a simple option to restore the old behavior

eclipse-ecp-bot commented 8 months ago

By Eugen Neufeld on Feb 19, 2019 10:00

We decided to go with the solution of Jonas, so we will change the behavior and add an option to revert to the old behavior.

eclipse-ecp-bot commented 8 months ago

Mar 16, 2022 14:17

This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--\ The automated Eclipse Genie.