How to force a PropertySheetPage to open on selection of an element in the editor? [message #136198] |
Thu, 25 September 2003 23:19  |
Eclipse User |
|
|
|
Originally posted by: vgusev.graphlogic.com
Hello,
I am able to create a placeHolder for a PropertySheetPage, and when a user
manually Window->Show View->Properties, the propertysheetpage opens in the
right place, specified by the placeholder. The opened propertysheetpage then
reflects the properties of the element selected in the editor.
Now, I need to be able to open a propertysheetpage on doubleclick/click,
which is performed on an element shown in the editor. Is this done through
some actions, or something? If so, how do I instantiate the
propertysheetpage programmatically? Please type the examples. Thanks.
Vladimir
|
|
|
|
|
|
Re: How to force a PropertySheetPage to open on selection of an element in the editor? [message #136926 is a reply to message #136617] |
Fri, 26 September 2003 17:07   |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO--SPAM.us.ibm.com
Do you mean page or view. Because there is the property view, and then
there are property pages on the view. When you switch to a different
editor, the property sheet page for that editor will be made to show up
in the property view. To get a customized property page for a particular
editor, that editor would return the specialized property page from the
getAdapter method. This specialized page would then be on the Property view.
To open the property view, you do a IWorkbookPage.showView() where you
pass in the id of the view, in this case the PropertySheet View id.
Vladimir wrote:
> No, I don't need my own implementation. I also read that article. The
> question I was asking - how to programmatically open a property sheet page?
> The keyword here is programmatically. Everything works, except that the
> end-user has to open the property editor manually - I want it to open in the
> placeholder on double-click in the main editor. Thanks.
> "Richard L. Kulp" <richkulp@NO--SPAM.us.ibm.com> wrote in message
> news:bl1jod$pta$1@eclipse.org...
>
>>Do you really need your own PropertySheetPage implementation? Can the
>>default PropertySheetPage be sufficient? The default one works with
>>IPropertySource and IPropertyDescriptor objects. See the following
>>article on PropertySheets:
>>
>>
>
> http://www.eclipsecorner.org/articles/Article-Properties-Vie w/properties-view.html
>
>>
>>If you really need to have your own implentation of PropertySheetPage,
>>then you need to return one from a getAdapter(IPropertySheetPage.class)
>>call against your IEditorPart.
>>
>>Rich
>>
>
>
>
--
Thanks, Rich Kulp
|
|
|
Re: How to force a PropertySheetPage to open on selection of an element in the editor? [message #137424 is a reply to message #136926] |
Mon, 29 September 2003 09:36  |
Eclipse User |
|
|
|
Originally posted by: vgusev.graphlogic.com
Thanks, realizing that there is such distinction really help.
Vladimir
"Richard L. Kulp" <richkulp@NO--SPAM.us.ibm.com> wrote in message
news:bl29jt$fbr$1@eclipse.org...
> Do you mean page or view. Because there is the property view, and then
> there are property pages on the view. When you switch to a different
> editor, the property sheet page for that editor will be made to show up
> in the property view. To get a customized property page for a particular
> editor, that editor would return the specialized property page from the
> getAdapter method. This specialized page would then be on the Property
view.
>
> To open the property view, you do a IWorkbookPage.showView() where you
> pass in the id of the view, in this case the PropertySheet View id.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.13906 seconds