1 37 38 package net.sourceforge.cruisecontrol.events; 39 40 import net.sourceforge.cruisecontrol.Project; 41 import net.sourceforge.cruisecontrol.ProjectState; 42 43 import java.util.EventObject ; 44 45 51 public class BuildProgressEvent extends EventObject { 52 53 private final ProjectState state; 54 55 61 public BuildProgressEvent(Project project, ProjectState state) { 62 super(project); 63 this.state = state; 64 } 65 66 public Project getProject() { 67 return (Project) getSource(); 68 } 69 70 public ProjectState getState() { 71 return state; 72 } 73 74 public String toString() { 75 return getProject().getName() + ": " + state.getName(); 76 } 77 78 } 79 | Popular Tags |