Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to force a PropertySheetPage to open on selection of an element in the editor?
How to force a PropertySheetPage to open on selection of an element in the editor? [message #136198] Thu, 25 September 2003 23:19 Go to next message
Eclipse UserFriend
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 #136201 is a reply to message #136198] Thu, 25 September 2003 23:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vgusev.graphlogic.com

It would also suffice to programmatically open propertysheet page when the
editor loads. Thanks.
"Vladimir" <vgusev@graphlogic.com> wrote in message
news:bl0b4i$jb1$1@eclipse.org...
> 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 #136558 is a reply to message #136201] Fri, 26 September 2003 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

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
Re: How to force a PropertySheetPage to open on selection of an element in the editor? [message #136617 is a reply to message #136558] Fri, 26 September 2003 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vgusev.graphlogic.com

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
>
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
>
>
Previous Topic:Perl Plugin on Mac OS X
Next Topic:How to instantiate a PropertySheetPage
Goto Forum:
  


Current Time: Sat Jul 19 15:27:27 EDT 2025

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

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

Back to the top