ui.propertyPages extension point [message #156550] |
Thu, 13 November 2003 17:54 |
Eclipse User |
|
|
|
I have an application that extends the functionality of the standard JDT
model. The elements in my model are adapatable to the underlying JDT and
workspace elements they wrap. When showing a properties dialog for
elements from a custom view, elements that adapt to IResource work great
since property pages with adaptable=true are designed for this. The
problem is that I need to show property pages for elements that adapt to
other things as well. In particular, on my "project" element, I need to
show the JDT project properties as well as my own. The propertyPages
extension point for the JDT pages requires that my class is an instance of
IProject or IJavaProject, neither of which is the case. I can
cut-and-paste the plugin declarations for the java pages into my own
plugin and make objectClass="myElementClass", but that seems like a bad
way to handle it. Instead of adaptable="true" in the extension point,
wouldn't it make more sense to use adaptable="someClassThatICanAdaptTo"?
That way, if there are future property pages added for a type I adapt to,
I get the new pages automatically.
Thanks,
Derek
|
|
|
Powered by
FUDForum. Page generated in 0.04884 seconds