01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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.pde.internal.ui.wizards;
11:
12: import org.eclipse.core.resources.IProject;
13: import org.eclipse.core.runtime.IPath;
14:
15: /**
16: * This interface is used to insulate the client's wizards from the master
17: * wizard that is responsible for creating the new project. Clients use this
18: * interface to ask for the new project's name (without forcing the project
19: * creation) and the project handle itself. Content wizards can use the project
20: * name to construct default values for other name properties before the project
21: * resource is being created.
22: */
23: public interface IProjectProvider {
24: /**
25: * Returns the new plug-in project handle. This method will cause project
26: * creation if not created already.
27: *
28: * @return the handle of the new plug-in project
29: */
30: IProject getProject();
31:
32: /**
33: * Returns the name of the plug-in project that will be created. This method
34: * can be called at any time without forcing the project resource creation.
35: *
36: * @return new project name
37: */
38: String getProjectName();
39:
40: /**
41: * Returns an absolute path of the new plug-in project that will be created.
42: * This method can be called at any time without forcing the project
43: * resource creation.
44: *
45: * @return absolute project location path
46: */
47: IPath getLocationPath();
48: }
|