1 22 package org.netbeans.lib.cvsclient.event; 23 24 29 public class TerminationEvent extends CVSEvent { 30 31 34 private boolean error; 35 36 43 public TerminationEvent(Object source, boolean isError) { 44 super(source); 45 setError(isError); 46 } 47 48 52 public TerminationEvent(Object source) { 53 this(source, false); 54 } 55 56 60 public boolean isError() { 61 return error; 62 } 63 64 68 public void setError(boolean error) { 69 this.error = error; 70 } 71 72 77 protected void fireEvent(CVSListener listener) { 78 listener.commandTerminated(this); 79 } 80 } | Popular Tags |