KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > ide > undo > CreateProjectOperation


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.ide.undo;
13
14 import org.eclipse.core.resources.IProjectDescription;
15 import org.eclipse.ui.internal.ide.undo.ProjectDescription;
16
17 /**
18  * A CreateProjectOperation represents an undoable operation for creating a
19  * project in the workspace. Clients may call the public API from a background
20  * thread.
21  *
22  * This class is intended to be instantiated and used by clients. It is not
23  * intended to be subclassed by clients.
24  *
25  * @since 3.3
26  *
27  */

28 public class CreateProjectOperation extends AbstractCreateResourcesOperation {
29
30     /**
31      * Create a CreateProjectOperation
32      *
33      * @param projectDescription
34      * the project to be created
35      * @param label
36      * the label of the operation
37      */

38     public CreateProjectOperation(IProjectDescription projectDescription,
39             String JavaDoc label) {
40         super(new ProjectDescription[] { new ProjectDescription(
41                 projectDescription) }, label);
42     }
43 }
44
Popular Tags