01: /*******************************************************************************
02: * Copyright (c) 2006, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.ide.undo;
11:
12: import org.eclipse.core.resources.IProjectDescription;
13: import org.eclipse.ui.internal.ide.undo.ProjectDescription;
14:
15: /**
16: * A CreateProjectOperation represents an undoable operation for creating a
17: * project in the workspace. Clients may call the public API from a background
18: * thread.
19: *
20: * This class is intended to be instantiated and used by clients. It is not
21: * intended to be subclassed by clients.
22: *
23: * @since 3.3
24: *
25: */
26: public class CreateProjectOperation extends
27: AbstractCreateResourcesOperation {
28:
29: /**
30: * Create a CreateProjectOperation
31: *
32: * @param projectDescription
33: * the project to be created
34: * @param label
35: * the label of the operation
36: */
37: public CreateProjectOperation(
38: IProjectDescription projectDescription, String label) {
39: super (new ProjectDescription[] { new ProjectDescription(
40: projectDescription) }, label);
41: }
42: }
|