Skip to content
Permalink
Browse files

[JENKINS-38960 Follow-up] Switch to IconSet

  • Loading branch information...
stephenc committed Oct 13, 2016
1 parent 4fdf888 commit 648edd2b35925f9a491d3b35fc0ce92485304271
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main/java/jenkins/branch/CustomOrganizationFolderDescriptor.java
@@ -41,6 +41,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;
import jenkins.scm.api.SCMNavigatorDescriptor;
import org.jenkins.ui.icon.IconSpec;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;

@@ -49,7 +50,7 @@
*/
@SuppressWarnings("rawtypes") // not our fault
@Restricted(NoExternalUse.class)
public class CustomOrganizationFolderDescriptor extends TopLevelItemDescriptor {
public class CustomOrganizationFolderDescriptor extends TopLevelItemDescriptor implements IconSpec {

private static final Logger LOGGER = Logger.getLogger(CustomOrganizationFolderDescriptor.class.getName());

@@ -103,6 +104,11 @@ public String getIconFilePathPattern() {
return delegate.getIconFilePathPattern();
}

@Override
public String getIconClassName() {
return delegate.getIconClassName();
}

@Override
public TopLevelItem newInstance(ItemGroup parent, String name) {
OrganizationFolder p = new OrganizationFolder(parent, name);

0 comments on commit 648edd2

Please sign in to comment.
You can’t perform that action at this time.