blob: 57dd88f6d9f682083aa45107fd157d65aba38642 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2019, 2020 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Bug 569246
*****************************************************************************/
package org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.representation.command;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.papyrus.infra.viewpoints.policy.ViewPrototype;
import org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate;
/**
*
* This interface must be implemented by the creation command registered in the architecture framework, to be able to create new DocumentTemplate
*
*/
public interface ICreateDocumentTemplateEditorCommand {
/**
*
* @param prototype
* a view prototype (should be a PapyrusDocumentTemplateViewPrototype)
* @param name
* the name of the new DocumentTemplate to create
* @param semanticContext
* the semantic context
* @param open
* open after creation
* @return
* the created document template
*/
public DocumentTemplate execute(final ViewPrototype prototype, final String name, final EObject semanticContext, boolean open);
/**
*
* @param prototype
* a view prototype (should be a PapyrusDocumentTemplateViewPrototype)
* @param name
* the name of the new DocumentTemplate to create
* @param semanticContext
* the semantic context
* @param graphicalContext
* the graphical context
* @param open
* open after creation
* @return
* the created document template
*/
public DocumentTemplate execute(final ViewPrototype prototype, final String name, final EObject semanticContext, final EObject graphicalContext, final boolean open);
}