[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: adding a view at runtime

While not a great solution, in RCP you could simply add the view definition to the IExtensionRegistry (using the USER token) ... then you can create your view and pass parameters in using the IExecutableExtension mechanism (all ViewPart subclasses are already IExecutableExtensions).

Another common way to handle this is to take your parameters and "post" them to your own view manager, using a unique key. Then show your view as a multi-instance view. The newly created view can use its secondary ID to retrieve the information from your own view manager.

Later,
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/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm