Skip to content

Commit

Permalink
[JENKINS-31162] Removing the default implementation asked by @jglick
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Apr 5, 2016
1 parent 7cdb034 commit 9f8fa69
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
Expand Up @@ -40,40 +40,6 @@ public String getDisplayName() {
return Messages.Folder_DisplayName();
}

/**
* 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.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string with the Item description.
*/
public String getDescription() {
return Messages.Folder_Description();
}

/**
* Needed if it wants Folder are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string it represents a URL pattern to get the Item icon in different sizes.
*/
public String getIconFilePathPattern() {
return "plugin/cloudbees-folder/images/:size/folder.png";
}

/**
* Properties that can be configured for this type of {@link AbstractFolder} subtype.
*/
Expand Down
34 changes: 34 additions & 0 deletions src/main/java/com/cloudbees/hudson/plugins/folder/Folder.java
Expand Up @@ -339,6 +339,40 @@ 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.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string with the Item description.
*/
public String getDescription() {
return Messages.Folder_Description();
}

/**
* Needed if it wants Folder are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string it represents a URL pattern to get the Item icon in different sizes.
*/
public String getIconFilePathPattern() {
return "plugin/cloudbees-folder/images/:size/folder.png";
}

@Override
public TopLevelItem newInstance(ItemGroup parent, String name) {
return new Folder(parent, name);
Expand Down

0 comments on commit 9f8fa69

Please sign in to comment.