How to find out Domain or DomainSubtreeRoot from Selection since DomainSelection is internal
I am extending Domain and have several different types of Domains.
The Team Areas appear as children in the navigator. I am trying to contribute to the right click actions on a Team Area. The action should be different depending on the Domain. However, the selection is identical in both Domains since it's a Team Area. It seems I could cast the selection as a DomainSelection and do a getOriginal to see the full tree of the selected object. However DomainSelection is in an internal package (com.ibm.team.process.internal.rcp.ui). Is there another way I should be doing this? |
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Thinking about this a little more, does RTC have anything that extends org.eclipse.ui.AbstractSourceProvider that sets a variable?
Then the value of that variable (set to the Domain name, for example) could be used by the handler or menu definition in the plugin.xml to determine whether to enable the menu option. Is RTC doing something like this?