blob: 60e0ffe15f13ac1f1655738f1f344cd56b0f4610 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*****************************************************************************
* Copyright (c) 2021 CEA LIST and others.
*
* 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
* http://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
*
*****************************************************************************/
package org.eclipse.papyrus.infra.textedit.representation.command;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.papyrus.infra.textedit.textdocument.TextDocument;
import org.eclipse.papyrus.infra.viewpoints.policy.ViewPrototype;
/**
* This interface must be implemented by the creation command registered in the architecture framework, to be able to create new TextDocument
*/
public interface ICreateTextDocumentEditorCommand {
/**
*
* @param prototype
* a view prototype (should be a TextDocumentViewPrototype)
* @param name
* the name of the new TextDocument to create
* @param semanticContext
* the semantic context
* @param open
* open after creation
* @return
* the created textual editor
*/
public TextDocument execute(final ViewPrototype prototype, final String name, final EObject semanticContext, boolean open);
/**
*
* @param prototype
* a view prototype (should be a TextDocumentViewPrototype)
* @param name
* the name of the new TextDocument to create
* @param semanticContext
* the semantic context
* @param graphicalContext
* the graphical context
* @param open
* open after creation
* @return
* the created textual editor
*/
public TextDocument execute(final ViewPrototype prototype, final String name, final EObject semanticContext, final EObject graphicalContext, final boolean open);
}
|