Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to reuse the Properties View?
How to reuse the Properties View? [message #653951] Fri, 11 February 2011 21:19 Go to next message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
I'd like to reuse the Properties View in an application and have it show something whenever the current selection is a Foo object.

Unfortunately, it looks like I'd have to make Foo IAdaptable, so it can return a IPropertySource. Is there another way?
Re: How to reuse the Properties View? [message #654082 is a reply to message #653951] Sun, 13 February 2011 23:05 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 12/02/11 7:49 AM, Eric Jain wrote:
> I'd like to reuse the Properties View in an application and have it show
> something whenever the current selection is a Foo object.
>
> Unfortunately, it looks like I'd have to make Foo IAdaptable, so it can
> return a IPropertySource. Is there another way?
>

Not necessarily. See:
http://www.eclipse.org/articles/article.php?file=Article-Ada pters/index.html
for more info on how to use adapters.

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: How to reuse the Properties View? [message #654264 is a reply to message #654082] Mon, 14 February 2011 14:46 Go to previous message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
Prakash G.R. wrote on Sun, 13 February 2011 23:05
Not necessarily. See:
http://www.eclipse.org/articles/article.php?file=Article-Ada pters/index.html
for more info on how to use adapters.


Thanks, that works!
Previous Topic:RCP dependant OS executables
Next Topic:glue code for linking two classes?
Goto Forum:
  


Current Time: Sat Aug 30 04:33:10 EDT 2014

Powered by FUDForum. Page generated in 0.05828 seconds