1 19 20 21 package org.netbeans.modules.search.types; 22 23 24 import org.openide.loaders.DataObject; 25 import org.openide.util.HelpCtx; 26 import org.openide.util.NbBundle; 27 28 29 35 public class ObjectNameType extends TextType { 36 37 private static final long serialVersionUID = 1L; 38 40 41 43 protected String displayName() { 44 49 50 return NbBundle.getMessage(ObjectNameType.class, 51 "TEXT_OBJECTNAME_CRITERION"); } 53 54 57 public boolean testDataObject(DataObject dobj) { 58 String name = dobj.getName(); 59 return (name != null) && match(name); 60 } 61 62 64 public HelpCtx getHelpCtx() { 65 return new HelpCtx(ObjectNameType.class); 66 } 67 } 68 | Popular Tags |