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

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


   * @return a perspective matching the matcher
   * @throws WidgetNotFoundException if the perspective is not found
   */
  public SWTBotPerspective perspective(Matcher<?> matcher) {
    List<IPerspectiveDescriptor> perspectives = workbenchContentsFinder.findPerspectives(matcher);
    return new SWTBotPerspective(perspectives.get(0), this);
  }
View Full Code Here


  public List<SWTBotPerspective> perspectives(Matcher<?> matcher) {
    List<IPerspectiveDescriptor> perspectives = workbenchContentsFinder.findPerspectives(matcher);

    List<SWTBotPerspective> perspectiveBots = new ArrayList<SWTBotPerspective>();
    for (IPerspectiveDescriptor perspectiveDescriptor : perspectives)
      perspectiveBots.add(new SWTBotPerspective(perspectiveDescriptor, this));

    return perspectiveBots;
  }
View Full Code Here

   */
  public SWTBotPerspective activePerspective() {
    IPerspectiveDescriptor perspective = workbenchContentsFinder.findActivePerspective();
    if (perspective == null)
      throw new WidgetNotFoundException("There is no active perspective"); //$NON-NLS-1$
    return new SWTBotPerspective(perspective, this);
  }
View Full Code Here

   * @return a perspective matching the matcher
   * @throws WidgetNotFoundException if the perspective is not found
   */
  public SWTBotPerspective perspective(Matcher<?> matcher) {
    List<IPerspectiveDescriptor> perspectives = workbenchContentsFinder.findPerspectives(matcher);
    return new SWTBotPerspective(perspectives.get(0), this);
  }
View Full Code Here

  public List<SWTBotPerspective> perspectives(Matcher<?> matcher) {
    List<IPerspectiveDescriptor> perspectives = workbenchContentsFinder.findPerspectives(matcher);

    List<SWTBotPerspective> perspectiveBots = new ArrayList<SWTBotPerspective>();
    for (IPerspectiveDescriptor perspectiveDescriptor : perspectives)
      perspectiveBots.add(new SWTBotPerspective(perspectiveDescriptor, this));

    return perspectiveBots;
  }
View Full Code Here

   */
  public SWTBotPerspective activePerspective() {
    IPerspectiveDescriptor perspective = workbenchContentsFinder.findActivePerspective();
    if (perspective == null)
      throw new WidgetNotFoundException("There is no active perspective"); //$NON-NLS-1$
    return new SWTBotPerspective(perspective, this);
  }
View Full Code Here

   * @return a perspective matching the matcher
   * @throws WidgetNotFoundException if the perspective is not found
   */
  public SWTBotPerspective perspective(Matcher<?> matcher) {
    List<IPerspectiveDescriptor> perspectives = workbenchContentsFinder.findPerspectives(matcher);
    return new SWTBotPerspective(perspectives.get(0), this);
  }
View Full Code Here

  public List<SWTBotPerspective> perspectives(Matcher<?> matcher) {
    List<IPerspectiveDescriptor> perspectives = workbenchContentsFinder.findPerspectives(matcher);

    List<SWTBotPerspective> perspectiveBots = new ArrayList<SWTBotPerspective>();
    for (IPerspectiveDescriptor perspectiveDescriptor : perspectives)
      perspectiveBots.add(new SWTBotPerspective(perspectiveDescriptor, this));

    return perspectiveBots;
  }
View Full Code Here

   */
  public SWTBotPerspective activePerspective() {
    IPerspectiveDescriptor perspective = workbenchContentsFinder.findActivePerspective();
    if (perspective == null)
      throw new WidgetNotFoundException("There is no active perspective"); //$NON-NLS-1$
    return new SWTBotPerspective(perspective, this);
  }
View Full Code Here

  protected static final SWTWorkbenchBot bot = new SWTWorkbenchBot();

  @BeforeClass
  public static void closeWelcomePage() {
    try {
      SWTBotPerspective perspective = bot.perspectiveByLabel("Resource");
      assertNotNull(perspective);
    } catch (WidgetNotFoundException e) {
      // somebody else probably closed it, lets not feel bad about it.
    }
  }
View Full Code Here

TOP

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

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.