Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: dc3483836f3317c95387fa7f8873d102ca4bf9b2 (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
== Customization selection dialog ==

EMF Facet provides a customization selection dialog:

[[Image:../img/LoadCustomizationsDialog.png]]

To open this dialog to let the user select customizations, use <code>ILoadCustomizationsDialogFactory#createLoadCustomizationDialog</code> from the plug-in '''org.eclipse.emf.facet.custom.ui'''. For example:

<pre>
ILoadCustomizationsDialogListener callback = new ILoadCustomizationsDialogListener() {
  public void okPressed(List<Customization> selection) {
    // do something with the selection
  }
};
ILoadCustomizationsDialog dialog = ILoadCustomizationsDialogFactory.DEFAULT.createLoadCustomizationDialog(
    getShell(), availableCustomizations, initiallySelectedCustomizations, callback);
dialog.open();
</pre>

<font size="-2">
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: Nicolas Bros (Mia-Software)
</font>

Back to the top