Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Jface treeviewer refresh not working properly(Jface treeviewer refresh)
Jface treeviewer refresh not working properly [message #1810619] Wed, 14 August 2019 08:05 Go to next message
Eclipse UserFriend
Hi,

We are migrating our current eclipse RCP client to RAP. We have a view which has a Jface Treeviewer with refresh functionality wherein latest model data is fetched and tree is refreshed.

The issue is treeViewer.refresh(true) causes several items from the tree to disappear. More specifically, the top level elements disappear and only some of the children elements are shown.

Here is the code which runs on refresh command:


        treeViewer.setContentProvider(.....);
        treeViewer.setLabelProvider(......);
        treeViewer.setSorter(........);
        treeViewer.setInput(<latest root element>);

        IContentProvider contentProvider = treeViewer.getContentProvider();
        if (contentProvider instanceof NavigatorContentProvider)
        {
            ((NavigatorContentProvider) contentProvider).reset();
        }

        treeViewer.refresh(true);



index.php/fa/36101/0/
index.php/fa/36102/0/

I have attached screenshots for the issue.

The same code works without any issue on RCP client.

Could you please help with this?

Thanks
Ganesh
Re: Jface treeviewer refresh not working properly [message #1810693 is a reply to message #1810619] Fri, 16 August 2019 07:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

without a self-running snippet to reproduce the issue I can't say much about it. Please open a bug report and attach your demonstration code there.

Regards,
Ivan
Re: Jface treeviewer refresh not working properly [message #1810868 is a reply to message #1810693] Wed, 21 August 2019 01:45 Go to previous message
Eclipse UserFriend
Turned out to be an issue in my ContentProvider code itself. Thanks!
Previous Topic:Popup menu on Browser control doesn't disappear clicking outside menu
Next Topic:How to style a single Grid using RWT.CUSTOM_VARIANT?
Goto Forum:
  


Current Time: Wed Apr 30 17:15:34 EDT 2025

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

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

Back to the top