1 19 20 package org.netbeans.modules.subversion.ui.blame; 21 22 import java.awt.Color ; 23 import org.netbeans.modules.editor.errorstripe.privatespi.Mark; 24 import org.netbeans.modules.editor.errorstripe.privatespi.Status; 25 26 30 final class AnnotationMark implements Mark { 31 32 private static final Color COLOR = new Color (0x58,0x90,0xBE); 33 34 private final int line; 35 private final String message; 36 37 public AnnotationMark(int line, String message) { 38 this.line = line; 39 this.message = message; 40 } 41 42 public String getShortDescription() { 43 return message; 44 } 45 46 public int[] getAssignedLines() { 47 return new int[] {line, line}; 48 } 49 50 public Color getEnhancedColor() { 51 return COLOR; 52 } 53 54 public int getPriority() { 55 return PRIORITY_DEFAULT; 56 } 57 58 public Status getStatus() { 59 return Status.STATUS_OK; 60 } 61 62 public int getType() { 63 return TYPE_ERROR_LIKE; 64 } 65 } 66 | Popular Tags |