How to Reload the Data with ecp Renderers in the Properties View [message #1472783] |
Thu, 13 November 2014 23:52  |
Eclipse User |
|
|
|
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 #1475654 is a reply to message #1473006] |
Sun, 16 November 2014 07:29   |
Eclipse User |
|
|
|
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 #1476626 is a reply to message #1476550] |
Mon, 17 November 2014 02:56  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06852 seconds