Examples of renameDevice()


Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.renameDevice()

            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);
                try {
                    accessor.renameDevice(null, null);
                    fail("Expected an IllegalArgumentException");
                } catch (IllegalArgumentException e) {
                    // success
                }
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.renameDevice()

                } catch (IllegalArgumentException e) {
                    // success
                }

                try {
                    accessor.renameDevice("PC", null);
                    fail("Expected an IllegalArgumentException");
                } catch (IllegalArgumentException e) {
                    // success
                }
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.renameDevice()

                } catch (IllegalArgumentException e) {
                    // success
                }

                try {
                    accessor.renameDevice("xxx", "WP");
                    fail("RepositoryException expected");
                } catch (RepositoryException e) {
                    // success
                }
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.renameDevice()

                    fail("RepositoryException expected");
                } catch (RepositoryException e) {
                    // success
                }

                accessor.renameDevice("PC", "PeeCee");
                assertFalse("PC should not be found",
                        accessor.deviceExists("PC"));
                assertTrue("PeeCee should be found",
                        accessor.deviceExists("PeeCee"));
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.renameDevice()

                assertFalse("PC should not be found",
                        accessor.deviceExists("PC"));
                assertTrue("PeeCee should be found",
                        accessor.deviceExists("PeeCee"));

                accessor.renameDevice("WAP-Handset", "WP");
                assertFalse("WAP-Handset should not be found",
                        accessor.deviceExists("WAP-Handset"));
                assertTrue("WP should be found",
                        accessor.deviceExists("WP"));
View Full Code Here

Examples of com.volantis.devrep.repository.impl.accessors.AbstractDeviceRepositoryAccessor.renameDevice()

                AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                try {
                    accessor.renameDevice(createConnection(),
                            ROOT_DEVICE_NAME,
                            "NewName");

                    fail("Should have had a repository exception");
                } catch (RepositoryException e) {
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.renameDevice()

                    UndoRedoManager undoRedoManager =
                            context.getUndoRedoManager();
                    try {
                        // we don't allow device renames to be undoable
                        undoRedoManager.enable(false);
                        dram.renameDevice(oldName, newName);
                    } catch (RepositoryException re) {
                        EclipseCommonPlugin.handleError(ABPlugin.getDefault(),
                                re);
                        throw new UndeclaredThrowableException(re);
                    } finally {
View Full Code Here

Examples of de.desy.tine.server.devices.TDeviceList.renameDevice()

              propertyList.setDeviceOriented(true);
            }
            String oldName = tdv.getName();
            if (dc.getName().compareTo(oldName) != 0)
            {
              dlst.renameDevice(oldName,dc.getName());
            }
            deviceRedirection = dc.getRedirection();
            if (deviceRedirection != null && deviceRedirection.length() > 0)
            {
              tdv.setRedirection(deviceRedirection);
View Full Code Here

Examples of de.desy.tine.server.devices.TDeviceList.renameDevice()

              propertyList.setDeviceOriented(true);
            }
            String oldName = tdv.getName();
            if (dc.getName().compareTo(oldName) != 0)
            {
              dlst.renameDevice(oldName,dc.getName());
            }
            deviceRedirection = dc.getRedirection();
            if (deviceRedirection != null && deviceRedirection.length() > 0)
            {
              tdv.setRedirection(deviceRedirection);
View Full Code Here

Examples of de.desy.tine.server.devices.TDeviceList.renameDevice()

        TDevice tdv = dlst.getDevice(deviceNumber);
        if (tdv == null) return TErrorList.device_not_connected;
        String oldName = tdv.getName();
        if (deviceName.compareTo(oldName) != 0)
        {
          dlst.renameDevice(oldName,deviceName);
        }
        if (deviceRedirection != null && deviceRedirection.length() > 0)
        {
          tdv.setRedirection(deviceRedirection);
          deviceRedirection = null; // reset this !
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.