Package org.eclipse.swtbot.eclipse.dsl

Source Code of org.eclipse.swtbot.eclipse.dsl.Eclipse

/*******************************************************************************
* Copyright (c) 2009 David Green and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     David Green - initial API and implementation
*******************************************************************************/
package org.eclipse.swtbot.eclipse.dsl;

import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;

/**
* A DSL for manipulating the Eclipse IDE
*
* @author David Green
*/
public class Eclipse {

  /**
   * @return A new workbench that provides convenience API to access common features of the Eclipse workbench.
   */
  public static Workbench workbench() {
    return workbench(new SWTWorkbenchBot());
  }

  /**
   * @param bot the bot that can drive the workbench.
   * @return A new workbench that provides convenience API to access common features of the Eclipse workbench.
   */
  public static Workbench workbench(SWTWorkbenchBot bot) {
    return new DefaultWorkbench(bot);
  }

}
TOP

Related Classes of org.eclipse.swtbot.eclipse.dsl.Eclipse

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.