Skip to content

Commit

Permalink
[JENKINS-31162] Added NestedProjectsCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Apr 5, 2016
1 parent dc94c2d commit 51ceacf
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
@@ -0,0 +1,38 @@
package jenkins.model.item_category;

import hudson.Extension;
import jenkins.model.Messages;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;

/**
* A generic {@link ItemCategory}.
*
* This category should be moved to cloudbees-folder-plugin short-term.
*/
@Restricted(NoExternalUse.class)
@Extension(ordinal = -100)
public class NestedProjectsCategory extends ItemCategory {

public static final String ID = "nestedprojects";

@Override
public String getId() {
return ID;
}

@Override
public String getDescription() {
return Messages.ItemCategory_NestedProjects_Description();
}

@Override
public String getDisplayName() {
return Messages.ItemCategory_NestedProjects_DisplayName();
}

@Override
public int getMinToShow() {
return ItemCategory.MIN_TOSHOW;
}
}
2 changes: 2 additions & 0 deletions core/src/main/resources/jenkins/model/Messages.properties
Expand Up @@ -76,3 +76,5 @@ ItemCategory.Uncategorized.DisplayName=Uncategorized
ItemCategory.Uncategorized.Description=Item types that have not yet been categorized by their plugin maintainer.
ItemCategory.StandaloneProjects.DisplayName=Standalone Projects
ItemCategory.StandaloneProjects.Description=Create projects with a self-contained configuration and history. These projects can be at the top-level or grouped within folders.
ItemCategory.NestedProjects.DisplayName=Nested Projects
ItemCategory.NestedProjects.Description=Create project categories or project hierarchies with folders. Folders can be created manually or automatically based on repositories.

0 comments on commit 51ceacf

Please sign in to comment.