[Eclipse 2019-03 EMF.Editor] : regression ? [message #1806394] |
Wed, 08 May 2019 12:03 |
|
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 14:30] Report message to a moderator
|
|
|
|
Re: [Eclipse 2019-03 EMF.Editor] : regression ? [message #1806415 is a reply to message #1806408] |
Wed, 08 May 2019 16:43 |
|
Yes, I've corrected and now, presentation/*EditorAdvisor.java has deseappered.
But,
presentation/*ActionBarContributor.java
presentation/*Editor.java
presentation/*ModelWizard.java
are still missing.
I've tried to redo from scratch. And same result.
FYI, the .ecore and .genmodel files, here, attached.
I can't understand what happens.
|
|
|
|
|
|
|
Re: [Eclipse 2019-03 EMF.Editor] : regression ? [message #1806493 is a reply to message #1806421] |
Thu, 09 May 2019 20:16 |
|
Ed Willink wrote on Wed, 08 May 2019 18:38Hi
There is something wrong with digital.uml or your conversion thereof.
Conversion is performed by 'New EMF generation model wizard'.
Ed Willink wrote on Wed, 08 May 2019 18:38
When you write that it used to work was that before UML 2.5, because the problem seems to be that you have created a clone of the standard (new in UML 2.5) Primitive Types package, which might account for the subsequent trouble.
types imported (through 'New EMF generation model wizard') are all of type EDataType.
And here is the original uml file.
-
Attachment: digital.uml
(Size: 10.51KB, Downloaded 176 times)
[Updated on: Thu, 09 May 2019 20:17] Report message to a moderator
|
|
|
|
|
|
|
|
Re: [Eclipse 2019-03 EMF.Editor] : regression ? [message #1806597 is a reply to message #1806502] |
Sat, 11 May 2019 09:51 |
|
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 ?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05508 seconds