Skip to content
Permalink
Browse files
[JENKINS-31162] A new category (UncategorizedCategory) has been added
  • Loading branch information
recena committed Mar 15, 2016
1 parent a39a7f8 commit b1ca4d91bc73d57c68b7b7b458b55a22bcd9e936
Showing 3 changed files with 9 additions and 9 deletions.
@@ -48,21 +48,21 @@ public abstract class ItemCategory implements ModelObject, ExtensionPoint {
* The default {@link ItemCategory}, if an item doesn't belong anywhere else, this is where it goes by default.
*/
@Extension
public static final class BasicProjects extends ItemCategory {
public static final class UncategorizedCategory extends ItemCategory {

@Override
public String getId() {
return "category-id-basicprojects";
return "category-id-uncategorized";
}

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

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

@Override
@@ -28,7 +28,7 @@ public abstract class ItemCategoryConfigurator implements ExtensionPoint {

/**
* Finds the category specified by the first configurator.
* If none can be found {@link ItemCategory.BasicProjects} is returned.
* If none can be found {@link ItemCategory.UncategorizedCategory} is returned.
*
* @param descriptor the item to categorize.
*
@@ -42,7 +42,7 @@ public static ItemCategory getCategory(@Nonnull TopLevelItemDescriptor descripto
return category;
}
}
throw new IllegalStateException("At least, must exist the category: " + ItemCategory.BasicProjects.class);
throw new IllegalStateException("At least, must exist the category: " + ItemCategory.UncategorizedCategory.class);
}

/**
@@ -145,7 +145,7 @@ public static final class DefaultConfigurator extends ItemCategoryConfigurator {
@Nonnull
@Override
public ItemCategory getCategoryFor(@Nonnull TopLevelItemDescriptor descriptor) {
return ExtensionList.lookup(ItemCategory.BasicProjects.class).iterator().next();
return ExtensionList.lookup(ItemCategory.UncategorizedCategory.class).iterator().next();
}

@Nonnull
@@ -72,5 +72,5 @@ BlockedBecauseOfBuildInProgress.shortDescription=Build #{0} is already in progre
BlockedBecauseOfBuildInProgress.ETA=\ (ETA:{0})
BuildDiscarderProperty.displayName=Discard Old Builds

ItemCategory.BasicProjects.DisplayName=Basic Projects
ItemCategory.BasicProjects.Description=Create projects with a unique configuration and history. These projects can be standalone or grouped within Nested Projects.
ItemCategory.Uncategorized.DisplayName=Uncategorized
ItemCategory.Uncategorized.Description=Item types that have not yet been categorized by their plugin maintainer.

0 comments on commit b1ca4d9

Please sign in to comment.