Skip to content

Commit

Permalink
[JENKINS-38960 Follow-up] Switch to IconSet
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Oct 13, 2016
1 parent 4fdf888 commit 648edd2
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -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;

Expand All @@ -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());

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 648edd2

Please sign in to comment.