Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » how do I access a Property StandaloneView
how do I access a Property StandaloneView [message #726279] Sat, 17 September 2011 02:43 Go to next message
Sandy Mustard is currently offline Sandy MustardFriend
Messages: 4
Registered: July 2009
Junior Member
I would like the properties of my selected object to show in the
property sheet.

I have added the view to my perspective using:

layout.addStandaloneView(IPageLayout.ID_PROP_SHEET, false,
IPageLayout.BOTTOM, 0.75f, editorArea);

My objects implement IPropertySource.

How do I connect the selection to the Property sheet? I have a
SelectionListener available.

Sandy Mustard
Re: how do I access a Property StandaloneView [message #726280 is a reply to message #726279] Sat, 17 September 2011 02:53 Go to previous message
Sandy Mustard is currently offline Sandy MustardFriend
Messages: 4
Registered: July 2009
Junior Member
Well, just a little searching the web found me my answer.

I just needed to add:

getSite().setSelectionProvider(viewer);

in my createPartControl method.

Thanks,
Sandy

On 9/16/2011 10:43 PM, Sandy Mustard wrote:
> I would like the properties of my selected object to show in the
> property sheet.
>
> I have added the view to my perspective using:
>
> layout.addStandaloneView(IPageLayout.ID_PROP_SHEET, false,
> IPageLayout.BOTTOM, 0.75f, editorArea);
>
> My objects implement IPropertySource.
>
> How do I connect the selection to the Property sheet? I have a
> SelectionListener available.
>
> Sandy Mustard
>
Previous Topic:how to trace the property change of the WritableValue
Next Topic:TreeViewer collapses nodes after sorter is set.
Goto Forum:
  


Current Time: Thu Apr 25 17:37:21 GMT 2024

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

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

Back to the top