It's all about the answers!

Ask a question

Selectively contributing to Team Artifacts view


Robin Bobbitt (59679) | asked Jun 15 '09, 2:07 p.m.
Hi,

I'm contributing a new domain that I want to appear under project areas (same as build, work items, etc). I've had no trouble doing this by overriding the supportsCategory method. However, what I really want to do is have the domain appear under SOME project areas, but not all, depending on some new Configuration Data I'm adding to the project area. The domain I'm contributing will only apply to project areas configured in a certain way, so I don't want the domain to appear in project areas where it doesn't apply. I had hoped that I could just code the supportsCategory method to check the configuration data for the project area, but I can't see a way to figure out what project area I'm in. I see that when I'm in the Project Area editor, the category is IProjectAreaEditorCategory and I can do getProjectArea. But, for the main Team Artifacts view, I can't see a way to get the project area from ProjectAreaCategory. The Category.getCategoryElements is returning all of the connected project areas, which doesn't help me. Any ideas or suggestions??
Thanks!
Robin

2 answers



permanent link
Robin Bobbitt (59679) | answered Jun 22 '09, 4:44 p.m.
Thank you Darin for getting back to me. I have opened enhancement request 86452 for this issue.

Robin

What you are attempting to achieve is not supported.
If a domain supports IProjectAreaCategory then it is designed to be shown in
the TAN for all project areas to maintain consistancy within the UI.

You can code your domain to return no children within its content provider
when supplied with a DomainSubtreeRoot whose #getCategoryElement is a
project area with/without the required configuration data.

HTH
Darin
Jazz Process Team

"ryehle" <ryehle> wrote in message
news:h162lv$427$1@localhost.localdomain...
Hi,

I'm contributing a new domain that I want to appear under project
areas (same as build, work items, etc). I've had no trouble doing
this by overriding the supportsCategory method. However, what I
really want to do is have the domain appear under SOME project areas,
but not all, depending on some new Configuration Data I'm adding to
the project area. The domain I'm contributing will only apply to
project areas configured in a certain way, so I don't want the domain
to appear in project areas where it doesn't apply. I had hoped that I
could just code the supportsCategory method to check the
configuration data for the project area, but I can't see a way to
figure out what project area I'm in. I see that when I'm in the
Project Area editor, the category is IProjectAreaEditorCategory and I
can do getProjectArea. But, for the main Team Artifacts view, I can't
see a way to get the project area from ProjectAreaCategory. The
Category.getCategoryElements is returning all of the connected
project areas, which doesn't help me. Any ideas or suggestions??
Thanks!
Robin

permanent link
Darin Swanson (3161) | answered Jun 17 '09, 7:57 p.m.
Robin

What you are attempting to achieve is not supported.
If a domain supports IProjectAreaCategory then it is designed to be shown in
the TAN for all project areas to maintain consistancy within the UI.

You can code your domain to return no children within its content provider
when supplied with a DomainSubtreeRoot whose #getCategoryElement is a
project area with/without the required configuration data.

HTH
Darin
Jazz Process Team

"ryehle" <ryehle> wrote in message
news:h162lv$427$1@localhost.localdomain...
Hi,

I'm contributing a new domain that I want to appear under project
areas (same as build, work items, etc). I've had no trouble doing
this by overriding the supportsCategory method. However, what I
really want to do is have the domain appear under SOME project areas,
but not all, depending on some new Configuration Data I'm adding to
the project area. The domain I'm contributing will only apply to
project areas configured in a certain way, so I don't want the domain
to appear in project areas where it doesn't apply. I had hoped that I
could just code the supportsCategory method to check the
configuration data for the project area, but I can't see a way to
figure out what project area I'm in. I see that when I'm in the
Project Area editor, the category is IProjectAreaEditorCategory and I
can do getProjectArea. But, for the main Team Artifacts view, I can't
see a way to get the project area from ProjectAreaCategory. The
Category.getCategoryElements is returning all of the connected
project areas, which doesn't help me. Any ideas or suggestions??
Thanks!
Robin

Your answer


Register or to post your answer.