Skip to content
Permalink
Browse files
[JENKINS-31162] AbstractFolderDescriptor provides a default implement…
…ation of getCategoryId method
  • Loading branch information
recena committed Apr 5, 2016
1 parent 9f8fa69 commit e8b1dcb8dd1a6ec78e1b20ec96c49a520bc7a9d0
Showing 2 changed files with 12 additions and 12 deletions.
@@ -40,6 +40,18 @@ public String getDisplayName() {
return Messages.Folder_DisplayName();
}

/**
* Needed if it wants AbstractFolderDescriptor implementations are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
* TODO: Replace to {@code NestedProjectsCategory.ID}
*
* @return A string it represents a ItemCategory identifier.
*/
public String getCategoryId() {
return "nestedprojects";
}

/**
* Properties that can be configured for this type of {@link AbstractFolder} subtype.
*/
@@ -339,18 +339,6 @@ public DescriptorImpl getDescriptor() {
@Extension
public static class DescriptorImpl extends AbstractFolderDescriptor {

/**
* Needed if it wants Folders are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
* TODO: Replace to {@code NestedProjectsCategory.ID}
*
* @return A string it represents a ItemCategory identifier.
*/
public String getCategoryId() {
return "nestedprojects";
}

/**
* Needed if it wants Folders are categorized in Jenkins 2.x.
*

0 comments on commit e8b1dcb

Please sign in to comment.