Skip to content

Package: IEcoreGenModelLinker

IEcoreGenModelLinker

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: * David Soto Setzke - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.ecore.editor;
15:
16: import org.eclipse.emf.ecp.ecore.editor.util.EcoreGenException;
17:
18: /**
19: * A class which creates a new ecore file and a new genmodel file and
20: * links the two of them.
21: */
22: public interface IEcoreGenModelLinker {
23:
24:         /**
25:          * Creates a new ecore file and a new genmodel file and links both.
26:          *
27:          * @param ecorePath
28:          * the path (absolute) of the new ecore file
29:          * @param genModelPath
30:          * the path (relative) of the new genmodel file
31:          * @param modelProjectPath
32:          * the path (relative) of the model project
33:          * @throws EcoreGenException in case generating the genmodel fails
34:          */
35:         void generateGenModel(String ecorePath, String genModelPath,
36:                 String modelProjectPath) throws EcoreGenException;
37: }