1 19 20 package org.netbeans.modules.xml.xam.ui.highlight; 21 22 import java.util.HashSet ; 23 import java.util.Set ; 24 25 30 public class HighlightGroup { 31 32 public static final String SEARCH = "search"; 33 34 private Set <Highlight> highlights; 35 36 private String type; 37 38 private boolean showing; 39 40 45 public HighlightGroup(String type) { 46 assert type != null; 47 this.type = type; 48 highlights = new HashSet <Highlight>(); 49 } 50 51 56 public void addHighlight(Highlight hl) { 57 highlights.add(hl); 58 } 59 60 65 public String getType() { 66 return type; 67 } 68 69 74 public boolean isShowing() { 75 return showing; 76 } 77 78 83 public Set <Highlight> highlights() { 84 return highlights; 85 } 86 87 92 public void setShowing(boolean showing) { 93 this.showing = showing; 94 } 95 } 96 | Popular Tags |