How to update a TableViewer? [message #518517] |
Thu, 04 March 2010 11:13 |
Zimon Messages: 2 Registered: March 2010 |
Junior Member |
|
|
Hello community,
how can i update a TableViewer which is created in the createPartControl() in a ViewPart from a Editor when pushing a button?
I don´t know how to get the viewer to set the method viewer.setInput(new MyModel()).
I am refreshing the TableViewer with following code in a handler:
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
IWorkbenchPage page = window.getActivePage();
View view = (View) page.findView(View.ID);
System.out.println("REFREH HANDLER");
view.getViewer().setInput(new MyModel());
But when i am in a Editor, i have no event to get the ActiveWorkbenchWindow()
Thanks a lot
[Updated on: Thu, 04 March 2010 13:39] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.08441 seconds