Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 Nov 08 23:32:22 EST 2025

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

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

Back to the top