Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 23:26
boby pietri is currently offline boby pietriFriend
Messages: 27
Registered: October 2013
Junior Member
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 Nov 23 07:46:53 GMT 2014

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

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