Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to update a TableViewer?
How to update a TableViewer? [message #518517] Thu, 04 March 2010 11:13 Go to next message
Zimon is currently offline ZimonFriend
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

Re: How to update a TableViewer? [message #518566 is a reply to message #518517] Thu, 04 March 2010 13:56 Go to previous message
Zimon is currently offline ZimonFriend
Messages: 2
Registered: March 2010
Junior Member
Problem solved:

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();


Previous Topic:How to enable vertical scrolling for RAP application?
Next Topic:Is it possible to show browser's scrollBar in RAP?
Goto Forum:
  


Current Time: Wed Sep 25 06:06:49 GMT 2024

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

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

Back to the top