Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Property View
Property View [message #46462] Fri, 23 May 2003 18:42 Go to next message
Eclipse UserFriend
Originally posted by: unikoh.hotmail.com

Hi ...
I would like to create a property view in my plug-in.
As I understood I need to contribute to the extension point
org.eclips.ui.views new view, let's for example say, a view that uses
PropertySheetPage.
Also any object that needs to be represented must implement IPropertySource
interface.
Am I correct ?
Is there anything else that must be done ?
Thanks in advance,
Uri
Re: Property View [message #47005 is a reply to message #46462] Fri, 23 May 2003 20:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

If you intend to use PropertySheets and PropertySheetPages, I would
instead use the existing Properties View and instead contribute a
property page for your editor. That way when your editor is up, the
Property view will show the properties page from you editor.

The only reason you would need to provide your own PropertySheetPage is
if you need different IPropertySheetEntries then the standard ones. If
the standard ones are ok, then all that is needed is that the selection
provider in your editor provides:

1) An IStructuredSelection
2) The entries in the selection are IAdaptable and respond to
getAdapter(IPropertySource.class) with an IPropertySource instance.

Then your IPropertySource instance will be asked for descriptors, and so
on. These will then become the properties in the standard properties view.

Having your own Properties view could get confusing to a user.

Rich
Re: Property View [message #47126 is a reply to message #47005] Fri, 23 May 2003 23:23 Go to previous message
Eclipse UserFriend
Originally posted by: d.wegener(spamblock).attbi.com

There is also a new article on the Eclipse site about using the properties
view.

http://www.eclipse.org/articles/Article-Properties-View/prop erties-view.html


"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in message
news:bam0u4$9tt$1@rogue.oti.com...
> If you intend to use PropertySheets and PropertySheetPages, I would
> instead use the existing Properties View and instead contribute a
> property page for your editor. That way when your editor is up, the
> Property view will show the properties page from you editor.
>
> The only reason you would need to provide your own PropertySheetPage is
> if you need different IPropertySheetEntries then the standard ones. If
> the standard ones are ok, then all that is needed is that the selection
> provider in your editor provides:
>
> 1) An IStructuredSelection
> 2) The entries in the selection are IAdaptable and respond to
> getAdapter(IPropertySource.class) with an IPropertySource instance.
>
> Then your IPropertySource instance will be asked for descriptors, and so
> on. These will then become the properties in the standard properties view.
>
> Having your own Properties view could get confusing to a user.
>
> Rich
>
Previous Topic:How to make my plugin use a different class loader?
Next Topic:Synchronized views
Goto Forum:
  


Current Time: Thu Dec 26 13:12:20 GMT 2024

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

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

Back to the top