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
|
/**
* Copyright (c) 2011 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:
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
*/
package org.eclipse.papyrus.emf.facet.custom.ui.internal.exported.dialog;
import java.util.List;
import org.eclipse.papyrus.emf.facet.custom.ui.internal.dialog.LoadCustomizationsDialogFactory;
import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialogCallbackWithPreCommit;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
import org.eclipse.swt.widgets.Shell;
/**
* Factory for {@link ILoadCustomizationsDialog}.
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
* @since 0.2.0
*/
public interface ILoadCustomizationsDialogFactory {
/** The default implementation */
ILoadCustomizationsDialogFactory DEFAULT = new LoadCustomizationsDialogFactory();
/**
* @param parent
* the parent shell
* @param availableCustoms
* the customizations that the user will be able to select
* @param selectedCustoms
* the customizations that will be selected when the dialog opens
* @param listener
* called when the dialog closes
* @return the dialog
* @since 0.2
*/
<D> ILoadCustomizationsDialog<D> createLoadCustomizationDialog(final Shell parent,
final List<Customization> availableCustoms,
final List<Customization> selectedCustoms,
IDialogCallbackWithPreCommit<List<Customization>, Boolean, D> callback);
/**
* @param parent
* the parent shell
* @param availableCustoms
* the customizations that the user will be able to select
* @param selectedCustoms
* the customizations that will be selected when the dialog opens
* @param lockedCustoms
* a list of customizations that the user will not be able to unload
* @param listener
* called when the dialog closes
* @param lockMsg
* a message indicating why certain customizations cannot be unloaded
* @return the dialog
* @since 0.2
*/
<D> ILoadCustomizationsDialog<D> createLoadCustomizationDialog(final Shell parent,
final List<Customization> availableCustoms,
final List<Customization> selectedCustoms,
final List<Customization> lockedCustoms,
IDialogCallbackWithPreCommit<List<Customization>, Boolean, D> callback,
String lockMsg);
}
|