Skip to content

Package: ECPContainer

ECPContainer

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2012 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: * Eugen Neufeld - JavaDoc
14: *
15: *******************************************************************************/
16:
17: package org.eclipse.emf.ecp.core.util;
18:
19: /**
20: * Common super interface for ECP containers, model elements can belong to. E.g. a
21: * {@link org.eclipse.emf.ecp.core.ECPProject ECPProject} or {@link org.eclipse.emf.ecp.core.ECPRepository
22: * ECPRepository}.
23: *
24: *
25: *
26: * @author Eugen Neufeld
27: */
28: public interface ECPContainer extends ECPElement, ECPPropertiesAware, ECPProviderAware {
29:         /**
30:          * Whether this instance can be deleted or not.
31:          *
32:          * @return true if this instance can be deleted, false otherwise.
33:          */
34:         boolean canDelete();
35:
36:         /**
37:          * Deletes the current instance.
38:          */
39:         void delete();
40: }