Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Get the current active wizard page
Get the current active wizard page [message #525871] Thu, 08 April 2010 06:41 Go to next message
czetsuya is currently offline czetsuyaFriend
Messages: 9
Registered: March 2010
Location: Philippines
Junior Member
Hi,

I have a wizard page with 2 composites, a treeviewer (left) and a tableviewer(right). When I click a node in the left tree the data in the right viewer should change.

I added a "addSelectionChangedListener" in the treeviewer that initialized a command from the plugin.xml and call the default handler.

My problem is in the defaultHandler class, how should I reference the right composite of the wizard page which has the tableviewer.

In view, it can be done this way:
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IViewPart view = window.getActivePage().findView(viewId);

How about for wizardpage?

Thanks,
czetsuya


Re: Get the current active wizard page [message #526062 is a reply to message #525871] Thu, 08 April 2010 15:25 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If it's your page with both viewers, why not have the treeviewer
selection change call methods on the table viewer directly?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Save and Restore View Layout
Next Topic:Prevent loading a perspective
Goto Forum:
  


Current Time: Thu Apr 25 14:29:37 GMT 2024

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

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

Back to the top