Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableViewer refresh does not work in a ViewPart
TableViewer refresh does not work in a ViewPart [message #1220001] Sun, 08 December 2013 18:26
Eclipse UserFriend
Hello,

I want to add a row (Person) in a TableViewer on button click but it does not display even after calling tableviewer.refresh().
However this work in an ApplicationWindow, not in ViewPart.

Do you know how to do that ?

// Add a new person when the user clicks button
    newPerson.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        Person p = new Person();
        p.setOSScopeRange(Integer.valueOf("0"));
        p.setOSNameRange(Integer.valueOf("0"));
        people.add(p);
        tv.refresh();
      
      }
    });



Thank you.
Previous Topic:How Program.launch(mailto) can find email client is not set?
Next Topic:Juno crashes on Ubuntu 13.10
Goto Forum:
  


Current Time: Sun Aug 31 18:41:33 EDT 2025

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

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

Back to the top