How to use PropertyPage in a RCP application [message #444534] |
Fri, 17 February 2006 04:38 |
Eclipse User |
|
|
|
Originally posted by: clark1010.gmail.com
Hello,
I'm no a English speaker, so...but i will try.
For example, the RCP Mail example application. I have added a
contextmenu to the NavigateView, so there will be a popup menu when i
right click the tree node. Now i want to add an action to the
contextmenu, for lauching a PropertyDialog, just like the
ResourceNavigatorView does. I have some questions:
1. The tree node is not a type of IFile, if i create a subclass of
PropertyPage, and extend the org.eclipse.ui.propertyPages point (i give
the objectclass attrubute value of NavigationView$TreeParent), could it
work or not? if yes, then how to make it work?
2. I found an action named PropertyDialogAction in package
org.eclipse.ui.dialogs. How to use it to launch the custom PropertyPage
that i have created? It showed the following message while running:
Unhandled event loop exception
Reason:
org.eclipse.ui.examples.rcp.mail.NavigationView$TreeParent
what does it mean?
3. Do you have some better idea?
I hope you are knowing what i mean.
|
|
|
Powered by
FUDForum. Page generated in 0.02838 seconds