public int removeDirectionSensorsFromSSL(LayoutEditor lePanel){
  if (lePanel == null) {
    return -1;
  }
  jmri.jmrit.display.layoutEditor.ConnectivityUtil cUtil=lePanel.getConnectivityUtil();
  List<String> list=getSystemNameList();
  if (list.size() <= 0) {
    return -2;
  }
  int numErrors=0;
  ArrayList<String> sensorList=new ArrayList<String>();
  for (int i=0; i < list.size(); i++) {
    Section s=getBySystemName(list.get(i));
    String name=s.getReverseBlockingSensorName();
    if ((name != null) && (!name.equals(""))) {
      sensorList.add(name);
    }
    name=s.getForwardBlockingSensorName();
    if ((name != null) && (!name.equals(""))) {
      sensorList.add(name);
    }
  }
  jmri.SignalHeadManager shManager=InstanceManager.getDefault(jmri.SignalHeadManager.class);
  List<String> signalList=shManager.getSystemNameList();
  for (int j=0; j < signalList.size(); j++) {
    SignalHead sh=shManager.getBySystemName(signalList.get(j));
    if (!cUtil.removeSensorsFromSignalHeadLogic(sensorList,sh)) {
      numErrors++;
    }
  }
  return numErrors;
}

public int removeDirectionSensorsFromSSL ( LayoutEditor lePanel ) { if ( lePanel == null ) { return - 1 ; } jmri . jmrit . display . layoutEditor . ConnectivityUtil cUtil = lePanel . getConnectivityUtil ( ) ; List < String > list = getSystemNameList ( ) ; if ( list . size ( ) <= 0 ) { return - 2 ; } int numErrors = 0 ; ArrayList < String > sensorList = new ArrayList < String > ( ) ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { Section s = getBySystemName ( list . get ( i ) ) ; String name = s . getReverseBlockingSensorName ( ) ; if ( ( name != null ) && ( ! name . equals ( "" ) ) ) { sensorList . add ( name ) ; } name = s . getForwardBlockingSensorName ( ) ; if ( ( name != null ) && ( ! name . equals ( "" ) ) ) { sensorList . add ( name ) ; } } jmri . SignalHeadManager shManager = InstanceManager . getDefault ( jmri . SignalHeadManager . class ) ; List < String > signalList = shManager . getSystemNameList ( ) ; for ( int j = 0 ; j < signalList . size ( ) ; j ++ ) { SignalHead sh = shManager . getBySystemName ( signalList . get ( j ) ) ; if ( ! cUtil . removeSensorsFromSignalHeadLogic ( sensorList , sh ) ) { numErrors ++ ; } } return numErrors ; }
removes direction sensors from ssl for all signals . returns ' 0 ' for no errors returns n , where n is a positive number for number of errors or warnings returns - 1 if there is no layouteditor panel returns - 2 if there are no sections defined
