Package com.volantis.mcs.eclipse.core

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


                        } else if (string.length() >
                                DeviceConstants.TEXT_MAX_LENGTH) {
                            return RENAME_DEVICE_ERROR_LENGTH;
                        } else if (oldName.equals(string)) {
                            return RENAME_DEVICE_ERROR_UNCHANGED;
                        } else if (dram.deviceExists(string)) {
                            return RENAME_DEVICE_ERROR_EXISTS;
                        } else if (deviceNameMatch.match(string)) {
                            if (deviceNameMatch.getParenLength(0) !=
                                    string.length()) {
                                return RENAME_DEVICE_ERROR_INVALID;
View Full Code Here


            DeviceRepositoryAccessorManager dram =
                    ProjectDeviceRepositoryProvider.getSingleton().
                    getDeviceRepositoryAccessorManager(projectProvider.
                    getProject());
            if ((deviceName != null) && (!deviceName.equals("") &&
                    dram.deviceExists(deviceName))) {
                element = dram.getHierarchyDeviceElement(deviceName);
                if (element != null) {
                    dialog.setInitialSelection(element);
                }
            } else {   // try the previous selection
View Full Code Here

                                new TestTransformerMetaFactory(),
                                new DefaultJDOMFactory(), false);
                final String deviceName = "MyTestDevice";

                assertFalse("Test device already exists!",
                            manager.deviceExists(deviceName));

                manager.createDevice("Master", deviceName);

                assertNotNull("Device identification element is null!",
                              manager.retrieveDeviceIdentification(deviceName));
View Full Code Here

                                repository.getPath(),
                                new TestTransformerMetaFactory(),
                                new DefaultJDOMFactory(), false);

                assertTrue("Expected the \"PC\" device to exist.",
                        manager.deviceExists("PC"));
                assertFalse("Expected the \"FantasicAmazingDevice\" device to not exist.",
                        manager.deviceExists("FantasticAmazingDevice"));
            }
        });
    }
View Full Code Here

                                new DefaultJDOMFactory(), false);

                assertTrue("Expected the \"PC\" device to exist.",
                        manager.deviceExists("PC"));
                assertFalse("Expected the \"FantasicAmazingDevice\" device to not exist.",
                        manager.deviceExists("FantasticAmazingDevice"));
            }
        });
    }

    /**
 
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.