Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters