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

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


              "Enter new category name:",
              category.getName(),
              null);
      // execute dialog
      if (inputDialog.open() == Window.OK) {
        commands_add(new CategoryNameCommand(category, inputDialog.getValue()));
      }
    } else if (element instanceof DeviceInfo) {
      DeviceInfo device = (DeviceInfo) element;
      DeviceEditDialog dialog = new DeviceEditDialog(device);
      // execute dialog
View Full Code Here


    DeviceManager.commandsAdd(new CategoryAddCommand("newCat", "foo"));
    // rename Category
    {
      CategoryInfo category = DeviceManager.getCategory("newCat");
      assertEquals("foo", category.getName());
      DeviceManager.commandsAdd(new CategoryNameCommand(category, "bar"));
      assertEquals("bar", category.getName());
    }
    // reload
    DeviceManager.commandsWrite();
    DeviceManager.forceReload();
View Full Code Here

TOP

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

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.