Skip to content

Commit

Permalink
[JENKINS-31162] AbstractFolderDescriptor provides a default implement…
Browse files Browse the repository at this point in the history
…ation of getCategoryId method
  • Loading branch information
recena committed Apr 5, 2016
1 parent 9f8fa69 commit e8b1dcb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Expand Up @@ -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.
*/
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/cloudbees/hudson/plugins/folder/Folder.java
Expand Up @@ -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.
*
Expand Down

0 comments on commit e8b1dcb

Please sign in to comment.