blob: 3a9e44a1fdf492902351633d3f9229978a0fe2df [file] [log] [blame]
/*******************************************************************************
* 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);
}
}