Search in sources :

Example 6 with NamedBeanHandleManager

use of jmri.NamedBeanHandleManager in project JMRI by JMRI.

the class AppsBase method installManagers.

protected void installManagers() {
    // Install a history manager
    InstanceManager.store(new FileHistory(), FileHistory.class);
    // record startup
    InstanceManager.getDefault(FileHistory.class).addOperation("app", Application.getApplicationName(), null);
    // Install a user preferences manager
    InstanceManager.store(JmriUserPreferencesManager.getDefault(), UserPreferencesManager.class);
    // install the abstract action model that allows items to be added to the, both 
    // CreateButton and Perform Action Model use a common Abstract class
    InstanceManager.store(new CreateButtonModel(), CreateButtonModel.class);
    // install preference manager
    InstanceManager.store(new TabbedPreferences(), TabbedPreferences.class);
    // install the named bean handler
    InstanceManager.store(new NamedBeanHandleManager(), NamedBeanHandleManager.class);
    //Install Entry Exit Pairs Manager
    InstanceManager.store(new EntryExitPairs(), EntryExitPairs.class);
}
Also used : NamedBeanHandleManager(jmri.NamedBeanHandleManager) EntryExitPairs(jmri.jmrit.signalling.EntryExitPairs) FileHistory(jmri.jmrit.revhistory.FileHistory) TabbedPreferences(apps.gui3.TabbedPreferences)

Example 7 with NamedBeanHandleManager

use of jmri.NamedBeanHandleManager in project JMRI by JMRI.

the class SignalSystemTest method setUp.

@Before
public void setUp() {
    apps.tests.Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    JUnitUtil.initConfigureManager();
    InstanceManager.store(new NamedBeanHandleManager(), NamedBeanHandleManager.class);
    JUnitUtil.initInternalTurnoutManager();
    JUnitUtil.initInternalLightManager();
    JUnitUtil.initInternalSensorManager();
    JUnitUtil.initMemoryManager();
}
Also used : NamedBeanHandleManager(jmri.NamedBeanHandleManager) Before(org.junit.Before)

Example 8 with NamedBeanHandleManager

use of jmri.NamedBeanHandleManager in project JMRI by JMRI.

the class ConsistFunctionControllerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    apps.tests.Log4JFixture.setUp();
    InstanceManager.setDefault(NamedBeanHandleManager.class, new NamedBeanHandleManager());
}
Also used : NamedBeanHandleManager(jmri.NamedBeanHandleManager)

Example 9 with NamedBeanHandleManager

use of jmri.NamedBeanHandleManager in project JMRI by JMRI.

the class DeviceServerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    apps.tests.Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    InstanceManager.setDefault(NamedBeanHandleManager.class, new NamedBeanHandleManager());
}
Also used : NamedBeanHandleManager(jmri.NamedBeanHandleManager)

Example 10 with NamedBeanHandleManager

use of jmri.NamedBeanHandleManager in project JMRI by JMRI.

the class MultiThrottleControllerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    apps.tests.Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    InstanceManager.setDefault(NamedBeanHandleManager.class, new NamedBeanHandleManager());
}
Also used : NamedBeanHandleManager(jmri.NamedBeanHandleManager)

Aggregations

NamedBeanHandleManager (jmri.NamedBeanHandleManager)10 TabbedPreferences (apps.gui3.TabbedPreferences)1 Sensor (jmri.Sensor)1 SensorManager (jmri.SensorManager)1 TestConsistManager (jmri.jmrit.consisttool.TestConsistManager)1 FileHistory (jmri.jmrit.revhistory.FileHistory)1 EntryExitPairs (jmri.jmrit.signalling.EntryExitPairs)1 Before (org.junit.Before)1