[Eclipse 2019-03 EMF.Editor] : regression ? [message #1806394] |
Wed, 08 May 2019 08:03  |
Eclipse User |
|
|
|
I don't know why but while my EMF.edit and EMF.editor are installed as plugin, my example wizard item doesn't appear.
I note that some java file in EMF.editor are not generated (nevertheless, all compile well) as in the past. Extensions are missing too.
For example,
presentation/*EditorAdvisor.java (new)
presentation/*EditorPlugin.java
but not :
presentation/*ActionBarContributor.java
presentation/*Editor.java
presentation/*ModelWizard.java
Absence of ModelWizard could explain but why is it absent ?
What's wrong, please ?
[Updated on: Wed, 08 May 2019 10:30] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [Eclipse 2019-03 EMF.Editor] : regression ? [message #1806597 is a reply to message #1806502] |
Sat, 11 May 2019 05:51   |
Eclipse User |
|
|
|
Ed Merks wrote on Fri, 10 May 2019 03:33If I create a new GenModel direct from your *.ecore files, indeed no editor is generated. But that's because there are no insubstantial ECasses in either model.
To say, no concrete class. OK. I totally agree with you. I've missed that.
Because no editor source code is generated, it means that somewhere in the EMF generator , a control-flow instruction controls creation of such java files depending on the presence of concrete class, I imagine something like :
if (!concreteClasses.isEmpty())
// Create *Editor.java, ...
It would be nice, as usual in software, at the contrary, to notify user by a warning, there is no concrete class in the model :
if (!concreteClasses.isEmpty())
// Create *Editor.java, ...
else
// Emit a warning : "no concrete class => no editor"
A good idea ?
|
|
|
|
|
|
|
|
Re: [Eclipse 2019-03 EMF.Editor] : regression ? [message #1806639 is a reply to message #1806638] |
Mon, 13 May 2019 01:19  |
Eclipse User |
|
|
|
Hi
UML to Ecore is far from experimental.
UML is a standard model specification language and so is more powerful paradigm than EMF. UML offers more opportunities for misunderstandings. UML has no direct implementation. UML to Ecore has many conversion options.
Ecore is a very practical model implementation language that can also be used as a specification.
If you just want an implementation then Ecore may well be a better choice.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.17313 seconds