Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTable.select()


        SWTBotTable logTable = getLogTable();

        String firstColumnTitle = logTable.cell(0, 0); // "Level"
        String secondColumnTitle = logTable.cell(1, 0); // "Category"

        logTable.select(0);
        pressMoveDownButton();

        boolean moveDownBtnWorks = logTable.cell(0, 0).equals(secondColumnTitle)
                && logTable.cell(1, 0).equals(firstColumnTitle);
        assertTrue(moveDownBtnWorks);
View Full Code Here


        boolean moveDownBtnWorks = logTable.cell(0, 0).equals(secondColumnTitle)
                && logTable.cell(1, 0).equals(firstColumnTitle);
        assertTrue(moveDownBtnWorks);

        logTable.select(1);
        pressMoveUpButton();

        boolean moveUpBtnWorks = logTable.cell(0, 0).equals(firstColumnTitle)
                && logTable.cell(1, 0).equals(secondColumnTitle);
        assertTrue(moveUpBtnWorks);
View Full Code Here

        SWTBotTable logTable = getLogTable();

        String firstItem = logTable.cell(0, 0); // "Level" by default
        String secondItem = logTable.cell(1, 0); // "Category" by default

        logTable.select(0);
        pressMoveDownButton();
        pressApplyButton();

        closePreferencesDialog();
View Full Code Here

    protected void writeToCell(final TableViewer viewer, final int row, final int column, final String text,
            final int editorActivationType) throws ParseException {

        final SWTBotTable table = new SWTBotTable(viewer.getTable());

        table.select(row);

        SWTBotTableItem item = table.getTableItem(row);

        startEditing(viewer, row, column, editorActivationType);
View Full Code Here

        .button(IDialogConstants.OK_LABEL).click();
    selectDialog = bot.shell(UIText.CommitSelectDialog_WindowTitle);
    // Select first parent, which should be the master commit
    SWTBotTable table = selectDialog.bot().table();
    assertEquals("Master commit", table.cell(0, 1));
    table.select(0);
    executeReplace(selectDialog);

    String replacedContent = getTestFileContent();
    assertThat(replacedContent, not(contentAfterMerge));
  }
View Full Code Here

    SWTBot viewBot = getHistoryViewBot();
    SWTBotTable fileDiffTable = viewBot.table(1);
    assertEquals(1, fileDiffTable.rowCount());

    fileDiffTable.select(0);
    assertFalse(fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenInEditorMenuLabel).isEnabled());
    fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenPreviousInEditorMenuLabel)
        .click();
View Full Code Here

    SWTBotTable table = bot.table(0);
    for (int i = 0; i < table.rowCount(); i++) {
      String rowName = table.getTableItem(i).getText();
      if (rowName != null && rowName.startsWith(repoName)) {
        table.select(i);
        break;
      }
    }
    // TODO investigate why we need Thread.sleep here
    bot.button("Next >").click();
View Full Code Here

    git.rm().addFilepattern(FILE1_PATH).call();
    RevCommit commit = git.commit().setMessage("Delete file").call();

    SWTBotTable commitsTable = getHistoryViewTable(PROJ1);
    assertEquals(commitCount + 1, commitsTable.rowCount());
    commitsTable.select(0);

    SWTBot viewBot = getHistoryViewBot();
    SWTBotTable fileDiffTable = viewBot.table(1);
    assertEquals(1, fileDiffTable.rowCount());
View Full Code Here

    });
    assertNotNull(editorRef.get());
    SWTBotEditor commitEditor = bot.activeEditor();
    SWTBotTable table = commitEditor.bot().table(0);
    assertTrue(table.rowCount() > 0);
    table.select(0);
    ContextMenuHelper.clickContextMenuSync(table,
        UIText.CommitFileDiffViewer_ShowAnnotationsMenuLabel);
    TestUtil.joinJobs(JobFamilies.BLAME);
    assertFalse(commitEditor.getReference().equals(
        bot.activeEditor().getReference()));
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.