docroot/WEB-INF/src/it/infn/ct/AppPreferences.java
public void delCurrInfrastructure() {
        // It is not possible to have zero Infrastructures
        if(inumInfrastructures > 1) {            
            AppInfrastructureInfo delInfrastructure = appInfrastructuresInfo.remove(currPaneInfrastucture-1);
            // 1st Pane remains unchanged
            if(currPaneInfrastucture > 1) 
                currPaneInfrastucture--;
            if(_log != null) 
                _log.info(LS+"Deleted infrastructure"
                         +LS+"----------------------"
                         +delInfrastructure.dump()
                        );
            // Now reduce the number of insfrastructures
            setNumInfrastructures(""+(--inumInfrastructures));            
        }
    }
/**
     * Remove the current infrastructure (currPaneInfrastructure); it is not possible
     * to have zero infrastructures.
     * 
     * @see         AppPreferences
     * @see         AppInfrastructureInfo
     */
Remove the current infrastructure (currPaneInfrastructure); it is not possible
to have zero infrastructures.


Remove the current infrastructure ( currPaneInfrastructure ) ; it is not possible to have zero infrastructures .
public void delCurrInfrastructure() {
        if(inumInfrastructures > 1) {            
            AppInfrastructureInfo delInfrastructure = appInfrastructuresInfo.remove(currPaneInfrastucture-1);
            if(currPaneInfrastucture > 1) 
                currPaneInfrastucture--;
            if(_log != null) 
                _log.info(LS+"Deleted infrastructure"
                         +LS+"----------------------"
                         +delInfrastructure.dump()
                        );
            setNumInfrastructures(""+(--inumInfrastructures));            
        }
    }
public void delCurrInfrastructure ( ) { if ( inumInfrastructures > 1 ) { AppInfrastructureInfo delInfrastructure = appInfrastructuresInfo . remove ( currPaneInfrastucture - 1 ) ; if ( currPaneInfrastucture > 1 ) currPaneInfrastucture -- ; if ( _log != null ) _log . info ( LS + "Deleted infrastructure" + LS + "----------------------" + delInfrastructure . dump ( ) ) ; setNumInfrastructures ( "" + ( -- inumInfrastructures ) ) ; } }
Remove the current infrastructure (currPaneInfrastructure); it is not possible
 to have zero infrastructures.
Remove the current infrastructure ( currPaneInfrastructure ) ; it is not possible to have zero infrastructures .
// It is not possible to have zero Infrastructures // 1st Pane remains unchanged // Now reduce the number of insfrastructures