Skip to content

Package: CreateProjectComposite

CreateProjectComposite

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.ui.common;
15:
16: import org.eclipse.emf.ecp.core.ECPProvider;
17: import org.eclipse.emf.ecp.core.util.ECPProperties;
18: import org.eclipse.emf.ecp.spi.common.ui.CompositeProvider;
19:
20: /**
21: * @author Eugen Neufeld
22: *
23: */
24: public interface CreateProjectComposite extends CompositeProvider {
25:         /**
26:          * Listener interface that will be notified if the projectName or the selected provider changes.
27:          *
28:          * @author Eugen Neufeld
29:          *
30:          */
31:         public interface CreateProjectChangeListener {
32:                 /**
33:                  * Callback method providing the new project name.
34:                  *
35:                  * @param projectName the new project name
36:                  */
37:                 void projectNameChanged(String projectName);
38:
39:                 /**
40:                  * Callback method providing the new provide.
41:                  *
42:                  * @param provider the new selected provider.
43:                  */
44:                 void providerChanged(ECPProvider provider);
45:
46:                 /**
47:                  * Callback method providing the new provide.
48:                  *
49:                  * @param status the new status.
50:                  */
51:                 void completeStatusChanged(boolean status);
52:
53:         }
54:
55:         /**
56:          * @return the provider
57:          */
58:         ECPProvider getProvider();
59:
60:         /**
61:          * @return the projectName
62:          */
63:         String getProjectName();
64:
65:         /**
66:          * @return the project properties
67:          */
68:         ECPProperties getProperties();
69:
70:         /**
71:          * @param listener
72:          * the listener to set
73:          */
74:         void setListener(CreateProjectChangeListener listener);
75: }