Skip to content

Commit

Permalink
[JENKINS-31162] A new category (UncategorizedCategory) has been added
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Mar 15, 2016
1 parent a39a7f8 commit b1ca4d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Expand Up @@ -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
Expand Down
Expand Up @@ -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.
*
Expand All @@ -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);
}

/**
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/resources/jenkins/model/Messages.properties
Expand Up @@ -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.