1 18 19 package org.netbeans.modules.changelog.settings; 20 21 import org.openide.options.*; 22 import org.openide.util.*; 23 24 28 public class ChangeLogSettings extends SystemOption { 29 30 public static final String PROP_DEFAULT_SERVER = "defaultServerInfo"; 32 public static final String PROP_SHOW_BRANCHES = "showBranchesByDefault"; 34 static final long serialVersionUID = -1563396366224442828L; 35 36 public ChangeLogSettings() { 37 setDefaultServerInfo(""); 38 setShowBranchesByDefault(false); 39 } 40 41 42 43 public String displayName() { 44 return NbBundle.getBundle(ChangeLogSettings.class).getString("CTL_ChangeLog_settings"); } 46 47 48 public HelpCtx getHelpCtx () { 49 return new HelpCtx (ChangeLogSettings.class); 50 } 51 52 55 public String getDefaultServerInfo() { 56 return (String )getProperty(PROP_DEFAULT_SERVER); 57 } 58 59 62 public void setDefaultServerInfo(String defaultServerInfo) { 63 putProperty(PROP_DEFAULT_SERVER, defaultServerInfo, true); 64 } 65 66 69 public boolean isShowBranchesByDefault() { 70 return ((Boolean )getProperty(PROP_SHOW_BRANCHES)).booleanValue(); 71 } 72 73 76 public void setShowBranchesByDefault(boolean showBranchesByDefault) { 77 putProperty(PROP_SHOW_BRANCHES, showBranchesByDefault ? Boolean.TRUE : Boolean.FALSE); 78 } 79 80 } | Popular Tags |