Skip to main content
summaryrefslogtreecommitdiffstats
blob: 9b6e3bcb54d48ba42f74ea15a7edce149d032d0e (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/**
 * Copyright (c) 2012 Mia-Software.
 *  
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *  	Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
 *  	Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
 */
package org.eclipse.emf.facet.efacet.sdk.ui.dialog;

import org.eclipse.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
import org.eclipse.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.dialog.FacetDialogFactoryImpl;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.dialog.SynchronizedFacetDialogFactory;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.exported.widget.IDerivedTypedElementWidget;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.exported.widget.IENamedElementWidget;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.exported.widget.IEStructuralFeatureWidget;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.exported.widget.IETypedElementWidget;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.exported.widget.IFacetWidget;
import org.eclipse.emf.facet.efacet.sdk.ui.internal.exported.widget.creation.IGetOrCreateFilteredFacetSetWidget;
import org.eclipse.emf.facet.util.ui.internal.exported.dialog.IDialog;
import org.eclipse.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget;
import org.eclipse.swt.widgets.Display;

/**
 * Interface for the dialogs creation factory.
 * 
 * @see FacetDialogFactoryImpl
 * 
 * @noextend This interface is not intended to be extended by clients.
 * @noimplement This interface is not intended to be implemented by clients.
 */
public interface IFacetDialogFactory {

	/**
	 * Return a new instance of the concrete implementation of this interface.
	 */
	IFacetDialogFactory INSTANCE = new SynchronizedFacetDialogFactory(
			new FacetDialogFactoryImpl(), Display.getDefault());

	/**
	 * Create an new Dialog for the creation of a FacetSet in a FacetSet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IENamedElementWidget<FacetSet, IGetOrCreateFilteredFacetSetWidget>> openCreateFacetSetInFacetSetDialog();

	/**
	 * Create an new Dialog for the creation of a Facet in a FacetSet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IFacetWidget> openCreateFacetInFacetSetDialog();

	/**
	 * Create an new Dialog for the creation of an Attribute in a Facet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IEStructuralFeatureWidget> openAddAttributeInFacetDialog();

	/**
	 * Create an new Dialog for the creation of an Reference in a Facet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IEStructuralFeatureWidget> openAddReferenceInFacetDialog();

	/**
	 * Create an new Dialog for the creation of an Operation in a Facet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IDerivedTypedElementWidget> openAddOperationInFacetDialog();

	/**
	 * Create an new Dialog for the creation of a Parameter in an Operation.
	 * 
	 * @return the dialog.
	 */
	IDialog<IETypedElementWidget<FacetOperation, IGetOrCreateFilteredElementCommmandWidget<FacetOperation, IDerivedTypedElementWidget>>> openAddParameterInOperationDialog();

	/**
	 * Create an new Dialog for the edition of a FacetSet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IENamedElementWidget<FacetSet, IGetOrCreateFilteredFacetSetWidget>> openEditFacetSetDialog();

	/**
	 * Create an new Dialog for the edition of a Facet.
	 * 
	 * @return the dialog.
	 */
	IDialog<IFacetWidget> openEditFacetDialog();

	/**
	 * Create an new Dialog for the edition of an Attribute.
	 * 
	 * @return the dialog.
	 */
	IDialog<IEStructuralFeatureWidget> openEditFacetAttributeDialog();

	/**
	 * Create an new Dialog for the edition of an Reference.
	 * 
	 * @return the dialog.
	 */
	IDialog<IEStructuralFeatureWidget> openEditFacetReferenceDialog();

	/**
	 * Create an new Dialog for the edition of an Operation.
	 * 
	 * @return the dialog.
	 */
	IDialog<IDerivedTypedElementWidget> openEditFacetOperationDialog();

	/**
	 * Create an new Dialog for the edition of a Parameter.
	 * 
	 * @return the dialog.
	 */
	IDialog<IETypedElementWidget<FacetOperation, IGetOrCreateFilteredElementCommmandWidget<FacetOperation, IDerivedTypedElementWidget>>> openEditFacetOperationParameterDialog();

}

Back to the top