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?
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?
Comments
John Reysa
Nov 05 '12, 2:45 p.m.