Package com.google.gdt.eclipse.designer.mobile.device.command

Examples of com.google.gdt.eclipse.designer.mobile.device.command.DeviceEditCommand


    Rectangle displayBounds =
        new Rectangle(Integer.parseInt(m_displayField_x.getText()),
            Integer.parseInt(m_displayField_y.getText()),
            Integer.parseInt(m_displayField_width.getText()),
            Integer.parseInt(m_displayField_height.getText()));
    return new DeviceEditCommand(m_device.getId(),
        m_nameField.getText(),
        m_imageField.getText(),
        displayBounds);
  }
View Full Code Here


    // 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
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.mobile.device.command.DeviceEditCommand

Copyright © 2018 www.massapicom. 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.