Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Parameterized View
Parameterized View [message #334629] Fri, 20 February 2009 17:40 Go to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Is there any way to parameterize a view programmatically? I would like
an action from one summary view to launch a new view with detail
information.

My detail view supports multiple instances and I'm using
IWorkbenchPage#showView(String, String, int) to open it. Any way to
tell it what to show?

I know IExecutableExtension can be used declaratively, but I need to do
it at runtime.

Thanks,
Will
Re: Parameterized View [message #334658 is a reply to message #334629] Mon, 23 February 2009 18:29 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Views don't have the concept of input, which is why there's nothing to
specify in the showView(*) call. The pattern that is commonly used in
eclipse is to make your secondaryId a key, that your view can use to
retrieve information from a common location at runtime.

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Paint a line across Eclipse?
Next Topic:Preferences vs. IPreferenceStore
Goto Forum:
  


Current Time: Wed Jun 26 20:07:32 GMT 2024

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

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

Back to the top