Permalink
Browse files

BugLinkAnnotator: Tidy up subclassing details

None of these changes make much difference, but they correspond better
to the default styles used by Eclipse.
  • Loading branch information...
1 parent d267b77 commit a00e15d7c82afcaa036f01e82d9729115f32d224 @emk committed Aug 30, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/buglinky/BugLinkAnnotator.java
@@ -27,15 +27,16 @@
/** Create a BugLinkAnnotator for the specified URL. */
public BugLinkAnnotator(String bugUrl) {
+ super();
this.bugUrl = bugUrl;
}
- /** Return a regular expression matching the text we want to process. */
+ @Override
protected String getPattern() {
return "(?:[Bb]ug|[Ii]ssue|[Tt]icket|[Cc]ase) #(\\d+)";
}
- /** Process a regular expression match. */
+ @Override
protected void processMatch(TextView doc, Range range, Matcher match) {
annotate(doc, range, "link/manual", bugUrl.concat(match.group(1)));
}

0 comments on commit a00e15d

Please sign in to comment.