Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can i Pass Command parameters in a View before it is opened(I am trying to open a view using page.showView from a handler.)
How can i Pass Command parameters in a View before it is opened [message #646368] Thu, 23 December 2010 14:48 Go to next message
Saurabh Mising name is currently offline Saurabh Mising name
Messages: 21
Registered: October 2010
Junior Member
In the execute method of my handler, i want to open a view using page.showView().
I want to use the command parameter values to paint the view.
How can i pass the command parameters to the view before it is opened?
Thanks,
Saurabh
Re: How can i Pass Command parameters in a View before it is opened [message #646374 is a reply to message #646368] Thu, 23 December 2010 15:05 Go to previous message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 23/12/10 8:18 PM, Saurabh wrote:
> In the execute method of my handler, i want to open a view using
> page.showView(). I want to use the command parameter values to paint the
> view.
> How can i pass the command parameters to the view before it is opened?
> Thanks,
> Saurabh


AFAIK, there isn't a direct API. But you can always workaround with
stuff like having some static variable in a class, which is set in the
parameter and accessed in the view's constructor/setVisible methods

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Previous Topic:Loading Perspective Problem
Next Topic:RCP PDF Editor
Goto Forum:
  


Current Time: Thu Oct 02 06:30:41 GMT 2014

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

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