1 19 package org.netbeans.modules.refactoring.api; 20 21 import java.util.Hashtable ; 22 import org.netbeans.modules.refactoring.api.*; 23 import org.openide.util.Lookup; 24 25 36 public final class WhereUsedQuery extends AbstractRefactoring { 37 41 public static final String SEARCH_IN_COMMENTS = "SEARCH_IN_COMMENTS"; 42 46 public static final String FIND_REFERENCES = "FIND_REFERENCES"; 47 48 61 public WhereUsedQuery(Lookup lookup) { 62 super(lookup); 63 putValue(FIND_REFERENCES, true); 64 } 65 66 70 public final void setRefactoringSource(Lookup lookup) { 71 this.refactoringSource = lookup; 72 } 73 74 private Hashtable hash = new Hashtable (); 75 76 83 public final boolean getBooleanValue(Object key) { 84 Object o = hash.get(key); 85 if (o instanceof Boolean ) 86 return (Boolean )o; 87 return false; 88 } 89 90 97 public final void putValue(Object key, Object value) { 98 hash.put(key, (Boolean ) value); 99 } 100 } 101 102 | Popular Tags |