Examples of pressShortcut()


Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotText.pressShortcut()

      }
    });

    SWTBotText text = bot.text("step2");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?

    cleanUp();
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarDropDownButton.pressShortcut()

      });

      SWTBotToolbarDropDownButton pathButton = showUndeleted.bot().toolbarDropDownButton();
      pathButton.menuItem(UIText.NonDeletedFilesTree_FileSystemPathsButton).click();
      // see http://www.eclipse.org/forums/index.php/t/159133/ why we need this
      pathButton.pressShortcut(KeyStroke.getInstance("ESC"));
      // fs path
      IPath path = new Path(lookupRepository(repositoryFile)
          .getWorkTree().getPath()).append(PROJ1).append(FOLDER)
          .append("ToBeDeleted");
      SWTBotTreeItem[] items = showUndeleted.bot().tree().getAllItems();
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarDropDownButton.pressShortcut()

          }
        assertTrue(found);
      }
      pathButton.menuItem(UIText.NonDeletedFilesTree_ResourcePathsButton).click();
      // see http://www.eclipse.org/forums/index.php/t/159133/ why we need this
      pathButton.pressShortcut(KeyStroke.getInstance("ESC"));
      // resource path
      assertEquals("ToBeDeleted", showUndeleted.bot().tree()
          .getAllItems()[0].getItems()[0].getItems()[0].getText());
      Display.getDefault().syncExec(new Runnable() {
        public void run() {
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.pressShortcut()

    List<SWTBotGefEditPart> parts = gEditor.editParts(matcher);
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart activityPart = parts.get(0);
    activityPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    for (int i = 0; i < 3 && gEditor.editParts(matcher).size() > 0; i++) {
      Thread.sleep(1000);
    }
    parts = gEditor.editParts(matcher);
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.pressShortcut()

    SWTBotGefEditPart activityPart = parts.get(0);
    SWTBotGefConnectionEditPart transitionPart = activityPart.sourceConnections().get(0);
    SWTBotGefEditPart containerPart = transitionPart.target();
    containerPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertEquals(Collections.emptyList(), parts);
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.pressShortcut()

    assertFalse(parts.isEmpty());

    SWTBotGefEditPart activityPart = parts.get(0);
    SWTBotGefConnectionEditPart transitionPart = activityPart.sourceConnections().get(0);
    transitionPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertEquals(Collections.emptyList(), parts);
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.pressShortcut()

    SWTBotGefConnectionEditPart transitionPart = step1.sourceConnections().get(0);
    SWTBotGefEditPart step2 = transitionPart.target();
    assertTrue(step2.part() instanceof SimpleActivityPart);

    transitionPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(SimpleActivityPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());
    assertTrue(parts.get(0).sourceConnections().isEmpty());
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.pressShortcut()

    SWTBotGefConnectionEditPart transitionPart = split.sourceConnections().get(0);
    SWTBotGefEditPart step3 = transitionPart.target();
    assertTrue(step3.part() instanceof SimpleActivityPart);

    transitionPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("split")));
    assertFalse(parts.isEmpty());
    assertTrue(parts.get(0).sourceConnections().isEmpty());
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.