git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2374 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-03-09 02:20:08 +00:00
1 parent 41dddcf334
commit 443693bc3e
2 files changed
+9 -9

No files matched your search

@@ -170,6 +170,15 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
return disabled;
}
@Override
public BallColor getIconColor() {
if(isDisabled())
// use grey to indicate that the build is disabled
return BallColor.GREY;
else
return super.getIconColor();
}
/**
* Schedules a build of this project.
*
@@ -88,15 +88,6 @@ public class Project extends AbstractProject<Project,Build> implements TopLevelI
return node.getWorkspaceFor(this);
}
@Override
public BallColor getIconColor() {
if(isDisabled())
// use grey to indicate that the build is disabled
return BallColor.GREY;
else
return super.getIconColor();
}
public synchronized Map<Descriptor<Builder>,Builder> getBuilders() {
return Descriptor.toMap(builders);
}