Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:05 Go to next message
Ganesh Modak is currently offline Ganesh ModakFriend
Messages: 2
Registered: August 2019
Junior Member
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 11:07 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2327
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 05:45 Go to previous message
Ganesh Modak is currently offline Ganesh ModakFriend
Messages: 2
Registered: August 2019
Junior Member
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: Mon Dec 09 18:47:18 GMT 2019

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

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

Back to the top