Opening IProject properties when another (adaptable to IProject) object is selected
Posted
by Stan
on Stack Overflow
See other posts from Stack Overflow
or by Stan
Published on 2010-03-20T02:51:33Z
Indexed on
2010/03/20
3:01 UTC
Read the original article
Hit count: 239
eclipse-plugin
|eclipse
I have a custom view displaying a hierarchy model of the current project. The root element is of class MyProject which is my own class, but it represents one Eclipse IProject, and it's adaptable to IProject.
I have a "properties" menu option in the popup menu for that view, and I'd like to open up IProject's properties when a MyProject object is selected. PropertyDialogAction only looks for property pages registered for MyProject and doesn't give me a chance to offer an adapter -- or, at least, I don't know how to offer one.
What's the proper solution for this?
In the meantime, I've overridden PropertyDialogAction to handle my class in the special way I require, but that seems like quite a kludge to get this done.
© Stack Overflow or respective owner