Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » How to Reload the Data with ecp Renderers in the Properties View(How to Reload the Data with ecp Renderers in the Properties View)
How to Reload the Data with ecp Renderers in the Properties View [message #1472783] Thu, 13 November 2014 23:52 Go to next message
Eclipse UserFriend
We are using ecp with properties view. Whenever Data is selected in the editor, with the help of the renderer we are able to display the content. But On Selection Change for the same object, instead of loading the data, it is creating again. How to reload the data with ecp Renderers in the properties view without creating again ?
Re: How to Reload the Data with ecp Renderers in the Properties View [message #1472979 is a reply to message #1472783] Fri, 14 November 2014 03:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

what exactly do you mean by "reload"? There is no need to reload, since
the UI is bound to the EObject and will show the current values anyways.

Best regards

Jonas

Am 14.11.2014 05:52, schrieb chaitanya reddy:
> We are using ecp with properties view. Whenever Data is selected in the
> editor, with the help of the renderer we are able to display the
> content. But On Selection Change for the same object, instead of loading
> the data, it is creating again. How to reload the data with ecp
> Renderers in the properties view without creating again ?
Re: How to Reload the Data with ecp Renderers in the Properties View [message #1472994 is a reply to message #1472979] Fri, 14 November 2014 03:50 Go to previous messageGo to next message
Eclipse UserFriend
if you are switching from one Data Model Object to Another , controls are getting created once again.
we have to update the UI with new object values.
otherwise it will show old object values. To Avoid that, we have to reload the values

Re: How to Reload the Data with ecp Renderers in the Properties View [message #1473006 is a reply to message #1472994] Fri, 14 November 2014 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Hello Jonas,

Thanks for your reply.

We are using ECP renderer in properties view to renderer the controls.

final VView view = ViewProviderHelper.getView(modelElement,null);
final ViewModelContext vmc = ViewModelContextFactory.INSTANCE.createViewModelContext(view, modelElement);

render = ECPSWTViewRenderer.INSTANCE.render(parent, vmc);

As far we understood ECPSWTViewRenderer creates all the controls on calling above code.

On selection change( From Editor) for same type of objects we want to reload(refresh) the data with newly selected object contents.

is there any provision in ECP API for the same?

Thanks,
Raghava Rao
Re: How to Reload the Data with ecp Renderers in the Properties View [message #1475654 is a reply to message #1473006] Sun, 16 November 2014 07:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

OK, now I understand the use case. There is currently no such API, is
there any reason to not just reload the complete view?

best regards

Jonas

Am 14.11.2014 10:01, schrieb Raghava Rao:
> Hello Jonas,
>
> Thanks for your reply.
>
> We are using ECP renderer in properties view to renderer the controls.
>
> final VView view = ViewProviderHelper.getView(modelElement,null);
> final ViewModelContext vmc =
> ViewModelContextFactory.INSTANCE.createViewModelContext(view,
> modelElement);
>
> render = ECPSWTViewRenderer.INSTANCE.render(parent, vmc);
>
> As far we understood ECPSWTViewRenderer creates all the controls on
> calling above code.
>
> On selection change( From Editor) for same type of objects we want to
> reload(refresh) the data with newly selected object contents.
>
> is there any provision in ECP API for the same?
>
> Thanks,
> Raghava Rao
Re: How to Reload the Data with ecp Renderers in the Properties View [message #1476550 is a reply to message #1472783] Mon, 17 November 2014 01:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jonas,

As we are using ECPSWTViewRenderer.INSTANCE.render(parent, vmc) for rendering same type of object ( previously selected & Current Object both are same),
We can observe flickering, while creating the controls and loading the data for new object. if we have more controls and more data, it is more significant.

Can you suggest a way to avoid this flicking?

Thanks,
Raghava Rao
Re: How to Reload the Data with ecp Renderers in the Properties View [message #1476626 is a reply to message #1476550] Mon, 17 November 2014 02:56 Go to previous message
Eclipse UserFriend
Hi,

yes, all controls and view services (e.g. validation) would need to
support a "re-bind" and there needs to be API to do that. This is
currently not supported. Please let me know if you are interested to
sponsor this feature.

Best regards

Jonas

Am 17.11.2014 07:31, schrieb Raghava Rao:
> Hi Jonas,
>
> As we are using ECPSWTViewRenderer.INSTANCE.render(parent, vmc) for
> rendering same type of object ( previously selected & Current Object
> both are same), We can observe flickering, while creating the controls
> and loading the data for new object. if we have more controls and more
> data, it is more significant.
>
> Can you suggest a way to avoid this flicking?
>
> Thanks,
> Raghava Rao
Previous Topic:Emf model compare view source code
Next Topic:[MongoEMF] Serializing EMF Model to MongoDB with MongoEMF fails
Goto Forum:
  


Current Time: Sun Jul 13 08:06:58 EDT 2025

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

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

Back to the top