Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [ECP][EMFForms]Emtpy standard view for ecore model
|[ECP][EMFForms]Emtpy standard view for ecore model [message #1735723]
||Wed, 22 June 2016 09:15
| Martin Weber
Registered: June 2016
I created an RCP 3.x application and intergated EMFStore and ECP. Everithing works fine until, I try to open a EClass or an other ecore model element from the Model Explorer. For example when I open a EClass node in the model explorer, it shows an almost emtpy frame in the editor area with a header [EClass], an empty tab at the top of the editor area and a tab like thing with title "Standard View" at the bottom.
On the console the following exceptions are logged:
!ENTRY org.eclipse.equinox.ds 1 0 2016-06-22 10:55:07.716
!MESSAGE Could not bind a reference of component EMFFormsViewService. The reference is: Reference[name = Provider, interface = org.eclipse.emf.ecp.view.spi.provider.IViewProvider, policy = dynamic, cardinality = 0..n, target = null, bind = addProvider, unbind = removeProvider]
!ENTRY org.eclipse.emf.ecp.view.model 4 0 2016-06-22 10:55:08.024
!MESSAGE No view service of type 'org.eclipse.emfforms.spi.swt.core.di.EMFFormsContextProvider' found.
!ENTRY org.eclipse.emf.ecp.view.model 4 0 2016-06-22 10:55:08.025
!MESSAGE The given ViewModelContext does not have a EMFFormsContextProvider. Hence, no renderer instance can be created.
!ENTRY org.eclipse.emf.ecp.view.model 4 0 2016-06-22 10:55:08.026
!MESSAGE Rendering not possible due to: No fitting EMFFormsRendererService for View available!.
org.eclipse.emf.ecp.ui.view.ECPRendererException: No fitting EMFFormsRendererService for View available!
Do I have to register the EMFFormsContextProvider somewhere manually? Where?
I'm new to ECP and EMFStore, so any help would be highly appreciated.
|Re: [ECP][EMFForms]Emtpy standard view for ecore model [message #1736263 is a reply to message #1736183]
||Tue, 28 June 2016 06:14
| Jonas Helming
Registered: July 2009
can you share, what you actually want to do? If you want an Ecore
editor, you might be interested in:
If you want to edit Ecores in ECP, you will probably need to add some
custom controls, as the Ecore meta-model is special at some places.
On 27.06.2016 13:08, Martin Weber wrote:
> Hi Eugen,
> Thank you for your help. You enabled me to show the editor for ecore
> object such as EClass and EAttribute.
> But what I'm still missing is the possibility to set the datatype for an
> EAttribute... Is this a special plugin/feature? Which?
> I read this blogposts from eclipse source, but I miss a documentation
> which gives me an overview, where to start looking for certain
> functionality. Something like an architecture description, which shows
> the overall picture.
> Is there a documentation or overview where I can see which plugins
> provide which features?
|Re: [ECP][EMFForms]Emtpy standard view for ecore model [message #1736437 is a reply to message #1736341]
||Wed, 29 June 2016 12:15
| Jonas Helming
Registered: July 2009
the ECP model explorer and the editor are two separate components.
The model explorer can show the hierachy of any EMF model instance. It
does not show "files", but projects. Projects can be filled from
different sources, of which one is a file. However in gerenal, the model
explorer abstracts from files and does not show them to the uiser. The
model explorer can also show Ecore models, as Ecore is defined itself in
Ecore. Although I would say the standard case is to show a custom model
instance in the model explorer, I currently do not know any adopter
using it for Ecore. The model explorer allows to open single instances
in the ECP editor, which embeds EMF Forms for showing the attributes.
The EMF Forms generic editor is an integration into the IDE providing a
ready to use editor, which reads in an XMI file and shows its complete
contents. Therefore, it also embedd EMF Forms. The EMF Forms ecore
editor is a subclass, which additionally adds custom renderers for Ecore
and actions, e.g. to generate code. This editor can also be embedded
into an RCP application (without the model explorer).
So it depends a little bit on how you want your application to look
like. If you want to have one editor per model, the EMF Forms editor is
probably a good starting point (maybe with some adpatations). If you
want to use the model explorer, you might want to reuse the custom
renderers we have written for the Ecore editor. As the are plugged into
EMF Forms, they are pretty independant to be reused.
I hopw this clarifies things a bit.
On 28.06.2016 16:26, Martin Weber wrote:
> Hi Jonas
> I try to create an RCP editor which allows creating models based on
> Ecore. Because these models define a domain specific language, the idea
> is to define the language based on EClass, EAttribute and EReference.
> These models will be later interpreted by an other RCP application which
> will use EMF Forms to create and edit instances of the models defined in
> the first editor.
> A days ago, I already read the blog you mentioned. I was expecting that
> the ecore editor will be used when I select only the ecore model in the
> context menu "Fitler Model Elements" of the ECP model explorer.
> Am I wrong with this assumption? Is it the generic editor unless I
> specify an other one?
> What do I have to configure to use the ecore editor? How does the
> EcoreEditor work together with the ECP Model Explorer?
> How can I provide ecore as the default model for ECP?
> Thanks for your help,
Current Time: Wed Feb 26 22:54:38 GMT 2020
Powered by FUDForum
. Page generated in 0.02262 seconds