1 13 14 package org.netbeans.modules.tasklist.checkstyle.options; 15 16 import org.openide.options.SystemOption; 17 import org.openide.util.NbBundle; 18 19 24 public final class CheckstyleSettings extends SystemOption { 25 26 private static final long serialVersionUID = 1; 27 28 public static final String PROP_SCAN_CHECKSTYLE = "checkstyle"; 30 34 public String getCheckstyle() { 35 String c = (String ) getProperty(PROP_SCAN_CHECKSTYLE); 36 if( c == null ){ 37 return getClass().getResource("checkstyle_checks.xml").toExternalForm(); 38 } 39 return c; 40 } 41 42 46 public void setCheckstyle(String checkstyle) { 47 putProperty(PROP_SCAN_CHECKSTYLE, checkstyle, true); 48 } 49 50 public String displayName() { 51 return NbBundle.getMessage(CheckstyleSettings.class, "DisplayName"); 52 } 53 54 } 55 | Popular Tags |