Skip to content

Package: ECPProvider

ECPProvider

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: * Eike Stepper - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.core;
15:
16: import org.eclipse.core.runtime.IAdaptable;
17: import org.eclipse.emf.ecp.core.util.ECPElement;
18:
19: /**
20: * @author Eike Stepper
21: * @author Jonas
22: * @noimplement This interface is not intended to be implemented by clients.
23: * @noextend This interface is not intended to be extended by clients.
24: */
25: public interface ECPProvider extends ECPElement, IAdaptable {
26:         /**
27:          * Type of the ECPElement.
28:          */
29:         String TYPE = "Provider"; //$NON-NLS-1$
30:
31:         /**
32:          * Label of the ECPProvider.
33:          *
34:          * @return the name of the ECPProvider
35:          */
36:         String getLabel();
37:
38:         /**
39:          * Check whether a new repository can be added to this ECPProvider.
40:          *
41:          * @return true if new repositories can be added.
42:          */
43:         boolean hasCreateRepositorySupport();
44:
45:         /**
46:          * Whether this ECPProvider can have an offline project.
47:          *
48:          * @return true if offline projects are allowed, false otherwise.
49:          */
50:         boolean hasCreateProjectWithoutRepositorySupport();
51:
52: }