Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes

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?


Be the first one to answer this question!

Register or log in to post your answer.

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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Nov 02 '12, 12:52 p.m.

Question was seen: 3,655 times

Last updated: Nov 05 '12, 2:45 p.m.

Confirmation Cancel Confirm