Property View [message #46462] |
Fri, 23 May 2003 18:42 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04069 seconds