1 19 20 package org.netbeans.modules.tasklist.suggestions; 21 22 import org.netbeans.modules.tasklist.core.Task; 23 import org.netbeans.modules.tasklist.core.TaskAnnotation; 24 import org.netbeans.modules.tasklist.core.TaskSelector; 25 26 public class SuggestionAnno extends TaskAnnotation { 27 28 SuggestionAnno(Task task) { 29 super(task); 30 } 31 32 public SuggestionAnno(Task task, TaskSelector view) { 33 super(task, view); 34 } 35 36 public String getAnnotationType () { 37 return "Suggestion"; } 39 40 public String getShortDescription () { 41 showTask(); 43 44 47 if (task.getDetails().length() > 0) { 49 return task.getSummary() + "\n\n" + task.getDetails(); 50 } else { 51 return task.getSummary(); 52 } 53 } 54 } 55 | Popular Tags |