001package jmri.jmrit.logixng.tools.debugger; 002 003import jmri.InstanceManager; 004import jmri.jmrit.logixng.*; 005 006import org.openide.util.lookup.ServiceProvider; 007 008/** 009 * 010 * @author daniel 011 */ 012@ServiceProvider(service = MaleStringActionSocketFactory.class) 013public class DebuggerMaleStringActionSocketFactory implements MaleStringActionSocketFactory { 014 015 @Override 016 public MaleStringActionSocket encapsulateMaleSocket(BaseManager<MaleStringActionSocket> manager, MaleStringActionSocket maleSocket) { 017 018 if (! InstanceManager.getDefault(LogixNGPreferences.class).getInstallDebugger()) { 019 return maleSocket; 020 } 021 022 return new DebuggerMaleStringActionSocket(manager, maleSocket); 023 } 024 025}