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

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


    refreshViewChecks();
    // listeners
    m_viewer.addCheckStateListener(new ICheckStateListener() {
      public void checkStateChanged(CheckStateChangedEvent event) {
        AbstractDeviceInfo element = (AbstractDeviceInfo) event.getElement();
        commands_add(new ElementVisibilityCommand(element, event.getChecked()));
      }
    });
    m_viewer.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        updateButtons();
View Full Code Here


    // visible initially
    {
      CategoryInfo category = DeviceManager.getCategory("newCat");
      assertTrue(category.isVisible());
      // show (will be removed by second command)
      DeviceManager.commandsAdd(new ElementVisibilityCommand(category, true));
      // hide
      DeviceManager.commandsAdd(new ElementVisibilityCommand(category, false));
      assertFalse(category.isVisible());
    }
    // reload
    DeviceManager.commandsWrite();
    DeviceManager.forceReload();
View Full Code Here

    // visible initially
    {
      DeviceInfo device = DeviceManager.getDevice("dev");
      assertTrue(device.isVisible());
      // show (will be removed by second command)
      DeviceManager.commandsAdd(new ElementVisibilityCommand(device, true));
      // hide
      DeviceManager.commandsAdd(new ElementVisibilityCommand(device, false));
      assertFalse(device.isVisible());
    }
    // reload
    DeviceManager.commandsWrite();
    DeviceManager.forceReload();
View Full Code Here

TOP

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

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.