The IWorkbenchPage
has the methods to control views:
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IViewPart viewPart = page.showView("view id");
The part createPartControl
will be called when the view is created, on subsequent calls to showView
it is not called.
The viewPart
will be an instance of your view class so you can add a method to that to update the view, something like:
MyView myView = (MyView)viewPart;
... call MyView method to update the view
Update showing on MyView:
public class MyView extends ViewPart
{
private List list;
public void createPartControl(Composite parent)
{
list = new List.....
}
public void update()
{
... update list
}
}