Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-31162] Added NestedProjectsCategory
- Loading branch information
recena
committed
Apr 5, 2016
1 parent
dc94c2d
commit 51ceacf
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
core/src/main/java/jenkins/model/item_category/NestedProjectsCategory.java
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