Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » E4 application model editor - doesn't open model with imported packages(I create custom model elements and use it in app model - editor doesn't open model with this elements)
E4 application model editor - doesn't open model with imported packages [message #939425] Wed, 10 October 2012 18:49 Go to next message
Rushan Gilmullin is currently offline 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 #941154 is a reply to message #939425] Fri, 12 October 2012 08:54 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Please file a bug on e4/ui
Re: E4 application model editor - doesn't open model with imported packages [message #942666 is a reply to message #939425] Sat, 13 October 2012 19:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5417
Registered: July 2009
Senior Member
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.

Beside that please note that the model editor has an extension point to
add forms for your custom types.

Tom

Am 10.10.12 20:49, schrieb Rushan Gilmullin:
> 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 12:19 Go to previous messageGo to next message
Rushan Gilmullin is currently offline 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 12:20]

Report message to a moderator

Re: E4 application model editor - doesn't open model with imported packages [message #944918 is a reply to message #943372] Mon, 15 October 2012 06:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5417
Registered: July 2009
Senior Member
The important thing is how your .e4xmi references your extension .ecore
file!

Tom

Am 14.10.12 14:19, schrieb Rushan Gilmullin:
> 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:
>
> Quote:
>> <extension point="org.eclipse.emf.ecore.generated_package">
>> <package
>>
>> uri="http://www.semanticsoft.org/ExtensionUI/e4modelextension"
>> 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?
>
Re: E4 application model editor - doesn't open model with imported packages [message #945831 is a reply to message #944918] Mon, 15 October 2012 17:41 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan Gilmullin
Messages: 61
Registered: June 2011
Member
Tom, are you remember discussion in theme "Eclipse 4 and Web"? You adviced me to patch event broker for isolating events in single workbench. Today I have decided to try your patch - I have create custom event broker class end register it with ContextFuction. All work ok! Now events really isolated and vaaclipse is almost ready to real use.

But first I must to solve the current problem. I can not understand this:

Quote:
The important thing is how your .e4xmi references your extension .ecore
file!


And the example how to provide forms for custom model elements will be very helpfull...
Re: E4 application model editor - doesn't open model with imported packages [message #945865 is a reply to message #945831] Mon, 15 October 2012 18:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5417
Registered: July 2009
Senior Member
Can you send the .e4xmi you want to use in the model editor? The problem
is that your extended .ecore is not known to the editor unless you run
in an inner workbench.

There is the SimpleIDE stuff which shows how to register a form editor
for custom elements.

Tom

Am 15.10.12 19:41, schrieb Rushan Gilmullin:
> Tom, are you remember discussion in theme "Eclipse 4 and Web"? You
> adviced me to patch event broker for isolating events in single
> workbench. Today I have decided to try your patch - I have create custom
> event broker class end register it with ContextFuction. All work ok! Now
> events really isolated and vaaclipse is almost ready to real use.
>
> But first I must to solve the current problem. I can not understand this:
>
> Quote:
>> The important thing is how your .e4xmi references your extension .ecore
>> file!
>
>
> And the example how to provide forms for custom model elements will be
> very helpfull...
>
Re: E4 application model editor - doesn't open model with imported packages [message #945879 is a reply to message #945865] Mon, 15 October 2012 18:49 Go to previous message
Rushan Gilmullin is currently offline Rushan Gilmullin
Messages: 61
Registered: June 2011
Member
Application.e4xmi
https://github.com/semanticsoft/vaaclipse/blob/master/org.semanticsoft.vaaclipsedemo.cassandra.app/Application.e4xmi

The ecore and genmodel in this project (see catalog model)

https://github.com/semanticsoft/vaaclipse/tree/master/org.semanticsoft.e4modelextension

Quote:

There is the SimpleIDE stuff which shows how to register a form editor
for custom elements.


Ok, I will see...
Previous Topic:Re: Getting the Workbench in e4?
Next Topic:Views not loaded automatically
Goto Forum:
  


Current Time: Thu Oct 23 12:33:34 GMT 2014

Powered by FUDForum. Page generated in 0.01793 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software