Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to pass a parameter to a view
How to pass a parameter to a view [message #463516] Tue, 13 February 2007 02:17 Go to next message
Eclipse UserFriend
Originally posted by: cemdayanik.gmail.com

I am using multiple views and each one will show some stock information.
So I need to initialize a view with a stock parameter dynamically.

I have found a kind of feature request about it here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=82621

So, does this mean there is no "appropriate" way of doing this currently?

thx for your time
Re: How to pass a parameter to a view [message #463621 is a reply to message #463516] Tue, 13 February 2007 14:35 Go to previous messageGo to next message
Eclipse UserFriend
It's like the bug mentioned, you can parameterize a view since it is an
IExecutableExtension with setInitializationData(*)

But that is parameterization at the org.eclipse.ui.views definition
level, not the ability pass a different parameter to each multi-instance
view you create.

Currently you would have to maintain some kind of StockViewManager ...
where you could add("stock.view.id:1", stockData) and have each view
retrieve its data using its ID during its init(*) method.

Later,
PW
Re: How to pass a parameter to a view [message #463627 is a reply to message #463516] Tue, 13 February 2007 15:49 Go to previous messageGo to next message
Eclipse UserFriend
I do this using the secondary id where I pass meta data to my view e.g.
the date in ISO-Format and parse this back to a java.util.Date later.

Tom

Cem Dayanık schrieb:
> I am using multiple views and each one will show some stock information.
> So I need to initialize a view with a stock parameter dynamically.
>
> I have found a kind of feature request about it here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=82621
>
> So, does this mean there is no "appropriate" way of doing this currently?
>
> thx for your time
>
Re: How to pass a parameter to a view [message #463653 is a reply to message #463627] Wed, 14 February 2007 02:12 Go to previous message
Eclipse UserFriend
Originally posted by: cemdayanik.gmail.com

this is somewhat similar what I was gonna do, but much better.

thx both of you.
Previous Topic:javax.persistence.PersistenceException: No Persistence provider for EntityManager named
Next Topic:Undo/Redo facility
Goto Forum:
  


Current Time: Mon Mar 17 02:01:43 EDT 2025

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

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

Back to the top