| E4 application model editor - doesn't open model with imported packages [message #939425] |
Wed, 10 October 2012 14:49  |
Rushan Gilmullin Messages: 61 Registered: June 2011 |
Member |
|
|
I create custom model elements and use it in app model - editor doesn't open model with this elements. It can not find package referenced from app model file by xmlns. The project containing model (ecore, genmodel and generated code) is in dependencies of project with app model. This project contains the extension point describing package uri. All work correctly (the model successfully extended), but app model editor has problem to open model file. Is it bug of editor or editing extended model is not implemented now?
Such exception is appear:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.semanticsoft.org/ExtensionUI/e4modelextension' not found. (platform:/resource/org.semanticsoft.e4test/Application.e4xmi, 2, 620)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.e4.tools.emf.ui.common.XMIModelResource.<init>(XMIModelResource.java:67)
at org.eclipse.e4.tools.emf.editor3x.XMIResourceFunction.compute(XMIResourceFunction.java:21)
at org.eclipse.e4.core.internal.contexts.ValueComputation.get(ValueComputation.java:60)
at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:221)
|
|
|
|
|
| Re: E4 application model editor - doesn't open model with imported packages [message #943372 is a reply to message #942666] |
Sun, 14 October 2012 08:19   |
Rushan Gilmullin Messages: 61 Registered: June 2011 |
Member |
|
|
Quote:I don't think this is a problem of the e4-editor but rather how you
included your ecore which must point to a workspace location.
Ecore adressed correctly by genmodel and genmodel itself also adressed correctly by extension point:
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="[url]http://www.semanticsoft.org/ExtensionUI/e4modelextension[/url]"
class="e4modelextension.E4modelextensionPackage"
genModel="model/e4modelextension.genmodel"/>
</extension>
Model extended correctly becouse application work correctly. The problem only with model editor.
Quote:Beside that please note that the model editor has an extension point to
add forms for your custom types.
Is there are example showing this?
[Updated on: Sun, 14 October 2012 08:20] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06460 seconds