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

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView


    item.setText(item.getText()); // TODO: is there a better solution?
  }

  private void toggleShowAllBranchesButton(boolean checked) throws Exception{
    getHistoryViewTable(PROJ1);
    SWTBotView view = bot
        .viewById("org.eclipse.team.ui.GenericHistoryView");
    SWTBotToolbarToggleButton showAllBranches = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_showAllBranches);
    boolean isChecked = showAllBranches.isChecked();
    if(isChecked && !checked || !isChecked && checked)
      showAllBranches.click();
  }
View Full Code Here


  private File repositoryFile;

  @Before
  public void setup() throws Exception {
    SWTBotView view = TestUtil.showExplorerView();
    part = view.getViewReference().getPart(false);

    repositoryFile = createProjectAndCommitToRepository();

    GitScopeOperationFactory.setFactory(new GitScopeOperationFactory() {
      @Override
View Full Code Here

  public static StagingViewTester openStagingView() throws Exception {
    // This is needed so that we can find staging entries by full path.
    Activator.getDefault().getPreferenceStore()
        .setValue(UIPreferences.STAGING_VIEW_FILENAME_MODE, false);

    SWTBotView view = TestUtil.showView(StagingView.VIEW_ID);
    TestUtil.joinJobs(org.eclipse.egit.core.JobFamilies.INDEX_DIFF_CACHE_UPDATE);

    return new StagingViewTester(view);
  }
View Full Code Here

  private void assertVariable(String expected, String variableName,
      String argument) throws CoreException {
    IResource findMember = project.findMember(TEST_FILE);

    SWTBotView explorerView = TestUtil.showExplorerView();
    final ISelectionProvider selectionProvider = explorerView
        .getViewReference().getView(true).getSite()
        .getSelectionProvider();
    final StructuredSelection structuredSelection = new StructuredSelection(
        findMember);
    PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
View Full Code Here

   * @throws WidgetNotFoundException if the view is not found
   */
  public SWTBotView view(Matcher<IViewReference> matcher) {
    WaitForView waitForView = waitForView(matcher);
    waitUntilWidgetAppears(waitForView);
    return new SWTBotView(waitForView.get(0), this);
  }
View Full Code Here

  public List<SWTBotView> views(Matcher<?> matcher) {
    List<IViewReference> views = workbenchContentsFinder.findViews(matcher);

    List<SWTBotView> viewBots = new ArrayList<SWTBotView>();
    for (IViewReference viewReference : views)
      viewBots.add(new SWTBotView(viewReference, this));
    return viewBots;
  }
View Full Code Here

   */
  public SWTBotView activeView() {
    IViewReference view = workbenchContentsFinder.findActiveView();
    if (view == null)
      throw new WidgetNotFoundException("There is no active view"); //$NON-NLS-1$
    return new SWTBotView(view, this);
  }
View Full Code Here

    assertEquals(1, 1);
    for (String projName : testProjectNames) {
      assertTrue(getResource(projName).exists());
    }
   
    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

      assertEquals(projectName, rooShellTab.getText());
    }
  }
 
  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());
View Full Code Here

    assertFalse(project.isOpen());
    bot.waitUntil(SWTBotUtils.widgetIsDisposed(shellTab));
  }

  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());
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

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.