Examples of SWTBotCTabItem


Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotCTabItem cTabItemWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(CTabItem.class), withId(value));
    return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotCTabItem cTabItemInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(CTabItem.class), inGroup(inGroup));
    return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotCTabItem cTabItem(int index) {
    Matcher matcher = allOf(widgetOfType(CTabItem.class));
    return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotCTabItem cTabItemInGroup(String mnemonicText, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(CTabItem.class), withMnemonic(mnemonicText), inGroup(inGroup));
    return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   * @return a {@link SWTBotCTabItem} with the specified tab name.
   */
  private SWTBotCTabItem findPage(Matcher<? extends Widget> titleMatcher) {
    WithItem<CTabItem> itemMatcher = WithItem.withItem(allOf(widgetOfType(CTabItem.class), titleMatcher));
    if (itemMatcher.matches(tabFolder))
      return new SWTBotCTabItem(itemMatcher.get(0));
    throw new WidgetNotFoundException("Could not find page with title " + titleMatcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   * @return the title of the currently active page or <code>null</code> if there is no active page
   */
  public String getActivePageTitle() {
    CTabItem tab = tabFolder.getSelection();
    if (tab != null) {
      return new SWTBotCTabItem(tab).getText();
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

   
    SWTBotView rooShell = getView("Roo Shell");
    assertTrue(rooShell.isActive());

    for (String projectName : testProjectNames) {
      SWTBotCTabItem rooShellTab = getRooShellTab(rooShell, projectName);
      assertEquals(projectName, rooShellTab.getText());
    }
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

 
  public void testShellClosesWhenProjectCloses() throws CoreException {
    SWTBotView rooShell = getView("Roo Shell");
    assertTrue(rooShell.isActive());
   
    SWTBotCTabItem shellTab = getRooShellTab(rooShell, "androow");
    IProject project = getProject("androow");
    project.close(null);
    assertFalse(project.isOpen());
    bot.waitUntil(SWTBotUtils.widgetIsDisposed(shellTab));
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

  public void testShellClosesWhenProjectDeleted() throws CoreException {
    SWTBotView rooShell = getView("Roo Shell");
    assertTrue(rooShell.isActive());
   
    SWTBotCTabItem shellTab = getRooShellTab(rooShell, "nierooj");
    IProject project = getProject("nierooj");
    project.delete(true, true, null);
    assertFalse(project.isOpen());
    bot.waitUntil(SWTBotUtils.widgetIsDisposed(shellTab));
    assertFalse(project.exists());
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem

  /**
   * Get a rooShell tab for a given projectName. This will only succeed if
   * there already is an open roo shell tab for this project.
   */
  private SWTBotCTabItem getRooShellTab(SWTBotView rooShell, String projectName) {
    SWTBotCTabItem result = rooShell.bot().cTabItem(projectName);
    assertEquals(projectName, result.getText());
    return result;
  }
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.