Bug 535164 - Not possible to make controls on abstract classes
Summary: Not possible to make controls on abstract classes
Status: CLOSED DUPLICATE of bug 534743
Alias: None
Product: ECP
Classification: Modeling
Component: EMF Forms (show other bugs)
Version: 1.16.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.20.0   Edit
Assignee: Eugen Neufeld CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-27 09:17 EDT by Michel Schaffers CLA
Modified: 2018-12-12 04:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Schaffers CLA 2018-05-27 09:17:36 EDT
I use EMFForms version 1.16

I take the makeithappen model and make the classes Task and User abstract.

I want indeed to make a new model, referencing the makeithappen model, and subclassing Task and User.

I want to make an EMFForms view on User, that will be used by all the specializations of User.

This is what I observe:
1) not possible to make any control: I create a Control, select FeaturePathDomainModelReference, press LinkDomainModelFeature, and receive an empty dialog with no feature to select. Why? I want say to make a control with the user First Name!
2) I do 'Generate Controls' in the User view and select the class 'User': I get a dialog where I can select the features present in User (OK); I select all of them and press OK; no control is Generated (NOK); why are there no control generated?

If I make the class User temporarily concrete (do not regenerate model or edit code, only modify the .ecore), then the two observed behaviors disapear. I can make the controls (OK).

I remake the class User astract and run the view. The view works OK.

So it seems not possible to make controls on elements of abstract class. Following workarounds can be used
- temporarily make the class concrete
- subclass the abstract class with a dummy concrete class in the original model
- manipulate the .view file with a text editor.

None of these workarounds are very satisfying. So for me this is a bug in the authoring tool making the .view file.

What is your opinion? Am I missing something?
Comment 1 Eugen Neufeld CLA 2018-06-04 16:31:33 EDT
Hi Michel, 

this is a known issue. See bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=534743
We also already have a review pending: https://git.eclipse.org/r/#/c/122750/

Could you try out whether this fixes your issue.

Cheers,
Eugen
Comment 2 Eugen Neufeld CLA 2018-08-22 09:35:43 EDT
Mass Move due to time constraints
Comment 3 Lucas Koehler CLA 2018-12-12 04:14:16 EST
Creating views for abstract classes is possible with EMF Forms 1.19 with the changes of Bug 534743

*** This bug has been marked as a duplicate of bug 534743 ***