1 18 19 package org.netbeans.modules.changelog.html; 20 21 22 import java.util.*; 23 import org.openide.*; 24 import org.openide.util.*; 25 26 31 public class ChangeLogHTMLService extends ServiceType { 32 33 public static final String REVISION = "revisionURL"; public static final String DIFF = "diffURL"; public static final String PREFIX = "cvsRootPrefix"; 37 38 39 private String cvsRootPrefix; 40 41 42 private String diffURL; 43 44 45 private String revisionURL; 46 47 private static final long serialVersionUID = -1717495349319475009L; 48 49 public ChangeLogHTMLService() { 50 } 51 52 55 public HelpCtx getHelpCtx() { 56 return new HelpCtx(ChangeLogHTMLService.class); 57 } 58 59 62 public String getCvsRootPrefix() { 63 return this.cvsRootPrefix; 64 } 65 66 69 public void setCvsRootPrefix(String cvsRootPrefix) { 70 String old = this.cvsRootPrefix; 71 this.cvsRootPrefix = cvsRootPrefix; 72 firePropertyChange(PREFIX, old, cvsRootPrefix); 73 } 74 75 78 public String getDiffURL() { 79 return this.diffURL; 80 } 81 82 85 public void setDiffURL(String diffURL) { 86 String old = this.diffURL; 87 this.diffURL = diffURL; 88 firePropertyChange(DIFF, old, diffURL); 89 } 90 91 94 public String getRevisionURL() { 95 return this.revisionURL; 96 } 97 98 101 public void setRevisionURL(String revisionURL) { 102 String old = this.revisionURL; 103 this.revisionURL = revisionURL; 104 firePropertyChange(REVISION, old, revisionURL); 105 } 106 107 108 public Object clone() { 109 ChangeLogHTMLService changelog = new ChangeLogHTMLService(); 110 changelog.setCvsRootPrefix(getCvsRootPrefix()); 111 changelog.setDiffURL(getDiffURL()); 112 changelog.setRevisionURL(getRevisionURL()); 113 return changelog; 114 } 115 116 } 117 | Popular Tags |