P25 LSM Simulcast decoder can only be used with " + "a tuner source. Please change the Source to use a tuner" + " or change the P25 Decoder to C4FM modulation
" ); } } if( editor instanceof AuxDecodeConfigurationEditor ) { AuxDecodeConfiguration config = ((AuxDecodeConfigurationEditor)editor).getConfiguration(); if( config != null && !config.getAuxDecoders().isEmpty() ) { throw new EditorValidationException( editor, "The auxiliary decoders work with analog audio and are not " + "compatible with the P25 Decoder. Please uncheck any auxiliary " + "decoders that you have selected for this channel
" ); } } } private void setControlsEnabled( boolean enabled ) { if( mComboModulation.isEnabled() != enabled ) { mComboModulation.setEnabled( enabled ); } if( mTrafficChannelPoolSize.isEnabled() != enabled ) { mTrafficChannelPoolSize.setEnabled( enabled ); } if( mIgnoreDataCalls.isEnabled() != enabled ) { mIgnoreDataCalls.setEnabled( enabled ); } } @Override public void setItem( Channel item ) { super.setItem( item ); if( hasItem() ) { setControlsEnabled( true ); DecodeConfiguration config = getItem().getDecodeConfiguration(); if( config instanceof DecodeConfigP25Phase1 ) { DecodeConfigP25Phase1 p25 = (DecodeConfigP25Phase1)config; mComboModulation.setSelectedItem( p25.getModulation() ); mIgnoreDataCalls.setSelected( p25.getIgnoreDataCalls() ); mTrafficChannelPoolSize.setValue( p25.getTrafficChannelPoolSize() ); setModified( false ); } else { mComboModulation.setSelectedItem( Modulation.C4FM ); mIgnoreDataCalls.setSelected( false ); mTrafficChannelPoolSize.setValue( DecodeConfiguration.TRAFFIC_CHANNEL_LIMIT_DEFAULT ); setModified( true ); } } else { setControlsEnabled( false ); setModified( false ); } } }