1 19 package org.netbeans.modules.j2ee.blueprints.ui.projects; 20 21 import org.openide.options.SystemOption; 22 import org.openide.util.NbBundle; 23 24 25 public class FoldersListSettings extends SystemOption { 26 27 static final long serialVersionUID = -5L; 28 29 private static final String LAST_EXTERNAL_SOURCE_ROOT = "srcRoot"; 31 private static final String NEW_PROJECT_COUNT = "newProjectCount"; 33 35 public String displayName() { 36 return ""; } 38 39 public String getLastExternalSourceRoot () { 40 return (String ) getProperty(LAST_EXTERNAL_SOURCE_ROOT); 41 } 42 43 public void setLastExternalSourceRoot (String path) { 44 putProperty (LAST_EXTERNAL_SOURCE_ROOT, path, true); 45 } 46 47 public int getNewProjectCount () { 48 Integer value = (Integer ) getProperty (NEW_PROJECT_COUNT); 49 return value == null ? 0 : value.intValue(); 50 } 51 52 public void setNewProjectCount (int count) { 53 this.putProperty(NEW_PROJECT_COUNT, new Integer (count),true); 54 } 55 56 65 public static FoldersListSettings getDefault () { 66 return (FoldersListSettings) SystemOption.findObject (FoldersListSettings.class, true); 67 } 68 } 69 | Popular Tags |