Added more LOG statements. issue_101067_change_scope_l10n_list_base version-2-3-101
authorJoelleLam
Tue, 29 May 2007 22:40:36 +0000
changeset 82778a2dabd7b47
parent 826 33ea9765cfbf
child 828 952220f749b4
Added more LOG statements.
visualweb.navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java
     1.1 --- a/visualweb.navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java	Tue May 29 19:26:33 2007 +0000
     1.2 +++ b/visualweb.navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java	Tue May 29 22:40:36 2007 +0000
     1.3 @@ -58,6 +58,11 @@
     1.4      private String pageName;
     1.5      
     1.6      private static final Logger LOGGER = Logger.getLogger("org.netbeans.modules.web.jsf.navigation");
     1.7 +//    
     1.8 +//    static {
     1.9 +//        LOGGER.setLevel(Level.ALL);
    1.10 +//    }
    1.11 +        
    1.12      
    1.13      /** Creates a new instance of VWPContentModel
    1.14       * @param facesModel can not be null
    1.15 @@ -80,10 +85,6 @@
    1.16          destroyListeners();
    1.17      }
    1.18      
    1.19 -    
    1.20 -    
    1.21 -    
    1.22 -    
    1.23      public VWPContentModel() {
    1.24      }
    1.25      
    1.26 @@ -102,24 +103,29 @@
    1.27      
    1.28      private FacesModelSetListener msl;
    1.29      public void initListeners() {
    1.30 -        
    1.31 +        LOGGER.entering("VWPContentModel", "initListeners()");
    1.32          if( msl == null ){
    1.33 +            LOGGER.finest("Adding model listener for Page: " + pageName);
    1.34              msl = new FacesModelSetListener(this);
    1.35              facesModel.getOwner().addModelSetListener(msl);
    1.36              DesignBean designBean = facesModel.getRootBean();
    1.37              
    1.38          }
    1.39 +        LOGGER.exiting("VWPContentModel", "initListeners()");
    1.40      }
    1.41      
    1.42      public void destroyListeners() {
    1.43          
    1.44 -        if ( facesModel != null ) {
    1.45 +        LOGGER.entering("VWPContentModel", "destroyListeners()");
    1.46 +        if ( facesModel != null ) {            
    1.47 +            LOGGER.finest("Removing model listener for Page: " + pageName);
    1.48              ModelSet set = facesModel.getOwner();
    1.49              if( set != null && msl != null ) {
    1.50                  set.removeModelSetListener(msl);
    1.51                  msl = null;
    1.52              }
    1.53          }
    1.54 +        LOGGER.exiting("VWPContentModel", "destroyListeners()");
    1.55      }
    1.56      
    1.57      
    1.58 @@ -475,7 +481,7 @@
    1.59          if( actions == null ){
    1.60              actions = new VWPContentActions(this);
    1.61          }
    1.62 -        return actions.getVWPContentModelActions();
    1.63 +        return (actions != null) ? actions.getVWPContentModelActions() : null;
    1.64      }
    1.65      
    1.66      public VWPContentActions getActionsFactory(){