// edit
{
String imagePath =
TestUtils.createImagePNG(m_testProject, "imB.png", 10, 20).getLocation().toPortableString();
// this command will be ignored
DeviceManager.commandsAdd(new DeviceEditCommand("dev",
"otherName",
imagePath,
new Rectangle(0, 0, 0, 0)));
// we will use this command
DeviceManager.commandsAdd(new DeviceEditCommand("dev",
"newName",
imagePath,
new Rectangle(10, 20, 100, 200)));
}
// Device was updated