Method
getTab
(ContributionType contributionType)
Source from the content-addressed store, hash-verified
| 225 | |
| 226 | |
| 227 | protected ContributionTab getTab(ContributionType contributionType) { |
| 228 | if (contributionType == ContributionType.LIBRARY) { |
| 229 | return librariesTab; |
| 230 | } else if (contributionType == ContributionType.MODE) { |
| 231 | return modesTab; |
| 232 | } else if (contributionType == ContributionType.TOOL) { |
| 233 | return toolsTab; |
| 234 | } else if (contributionType == ContributionType.EXAMPLES) { |
| 235 | return examplesTab; |
| 236 | } |
| 237 | return updatesTab; |
| 238 | } |
| 239 | |
| 240 | |
| 241 | // ContributionTab getActiveTab() { |
Tested by
no test coverage detected