1 9 10 package org.netbeans.modules.web.jsf.navigation; 11 12 import org.netbeans.modules.web.jsf.api.facesmodel.JSFConfigModel; 13 import org.openide.util.NbBundle; 14 15 19 public class PageFlowUtilities { 20 21 private static final int SCOPE_FACESCONFIG = 1; 22 private static final int SCOPE_PROJECT = 2; 23 24 public static final String LBL_SCOPE_FACESCONFIG = NbBundle.getMessage(PageFlowUtilities.class, "LBL_Scope_FaceConfig"); 25 public static final String LBL_SCOPE_PROJECT = NbBundle.getMessage(PageFlowUtilities.class, "LBL_Scope_Project"); 26 27 private String currentScope; 28 29 32 private PageFlowUtilities( ) { 33 currentScope = LBL_SCOPE_FACESCONFIG; 34 } 35 36 private static PageFlowUtilities instance; 37 private static JSFConfigModel configModel; 38 39 44 public static PageFlowUtilities getInstance(){ 45 if (instance == null){ 46 instance = new PageFlowUtilities(); 47 } 48 return instance; 49 } 50 51 public String getCurrentScope() { 52 return currentScope; 53 } 54 55 public void setCurrentScope(String currentScope) { 56 this.currentScope = currentScope; 57 } 58 59 60 } 61 | Popular Tags |